Build a Fortune Teller - Build a Fortune Teller

Tell us what’s happening:

Hello, can you please help me? I’m stuck and its flagging most steps

Your code so far

let fortune1 ="Your cat will look very cuddly today.";
let fortune2 ="The weather will be nice tomorrow.";
let fortune3 ="Be cautious of your new neighbours.";
let fortune4 ="You will find a new hobby soon.";
let fortune5 ="It would be wise to avoid the color red today.";


const min = 1;
const max = 5;
const randomNumber = Math.floor(Math.random() * (max - min + 1)) + min;

let selectedFortune;

if (randomNumer === 1) {
  selectedFortune = fortune1;
} else if (randomNumer === 2) {
  selectedFortune = fortune2;
} else if (randomNumer === 3) {
 selectedFortune = fortune3;
} else if (randomNumber === 4) {
  selectedFortune = fortune4;
} else if (randomNumber === 5) {
  selectedFortune = fortune5;
}
console.log(selectedFortune);

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 Edg/135.0.0.0

Challenge Information:

Build a Fortune Teller - Build a Fortune Teller

Hi. You have a typo on your variable name - you put randomNumer instead of randomNumber. Fix that and it should pass

The reference error in the console is also telling you that you are using an identifier (variable name) that doesn’t exist in the scope it is used in.

So if you think you have declared a variable, but you get a reference error when using it, chances are you have a typo (or a scope issue).