Tell us what’s happening:
I cant get the test to pass because everytime I go to type out the last part with the randomNumber, it refreshes and changes the random number so that the fortune does not correspond to the correct number.
Your code so far
let fortune1 = "Your cat will look very cuddly today.";
let fortune2 = "The weather will be nice tomorrow.";
let fortune3 = "You will find a new hobby soon.";
let fortune4 = "Be cautious of your new neighbours.";
let fortune5 = "It would be wise to avoid the color red today.";
let randomNumber = Math.floor(Math.random() * 5) + 1;
console.log(randomNumber);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Challenge Information:
Build a Fortune Teller - Build a Fortune Teller