Skip to content
Sign upLog in
← Back to Community

Fortune Teller Life

Profile icon
CjPlayzTV1

This is the teller life! :)

Voters
Profile icon
nbashh
Profile icon
AmoghTheCool
Profile icon
CjPlayzTV1
Comments
hotnewtop
Profile icon
FlaminHotValdez

hello can you please not use the word life it reminds me of dying and according to you dying is not allowed

Profile icon
MrVoo

Error on line 4, you set fortune to fortune instead of whatever it's supposed to be

Profile icon
MrVoo

You should also turn this into a website, instead of a blank page with a JavaScript prompt

Profile icon
CjPlayzTV1

BRO

@MrVoo

Profile icon
MrVoo

@nbash
Still doesn't work :P

Profile icon
CjPlayzTV1

@MrVoo
Ill hadd you to help me then

Profile icon
MrVoo

@nbash
Huh?

Profile icon
MrVoo

@nbash
Fixed :P

Profile icon
CjPlayzTV1

@MrVoo
;-;

Profile icon
MrVoo

@nbash
hehe

Profile icon
CjPlayzTV1

@MrVoo
;-; ;-; ;-;

Profile icon
CjPlayzTV1

my code = let question = prompt ("Ask me a yes or no question and I'll predict the answer.");
let lenght = question.lenght;
let numberOfFortunes = 6;
fortune = fortune % numberOfFortunes;

if (fortune === 0)
{
alert ("Definitely.");
}
else if (fortune === 1)
{
alert ("Probably not.");
}
else if (fortune === 2)
{
alert ("The stars are cloudy and the answer is uncertain.");
}
else if (fortune === 3)
{
alert ("It's your lucky day.");
}
else if (fortune === 4)
{
alert ("Not a chance");
}
else
{
alert ("It is likely.");
}