Fortune Teller Life
nbash

This is the teller life! :)

You are viewing a single comment. View All
nbash

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.");
}