Build a Fortune Teller - Build a Fortune Teller - My code is not seen?

Tell us what’s happening:

Socrates tells me I should write some code, but my code is here !
I tried on Safari and Chrome, same issue. Am I missing something ?

// running tests

  1. You should initialize fortune1 with a string value.
  2. You should initialize fortune2 with a string value.
  3. You should initialize fortune3 with a string value.
  4. You should initialize fortune4 with a string value.
  5. You should initialize fortune5 with a string value.
  6. You should generate a random number between 1 and 5, inclusive, and ass

Your code so far

const fortune1 = "Your cat will look very cuddly today.";
const fortune2 = "The weather will be nice tomorrow.";
const fortune3 = "Be cautious of your new neighbors.";
const fortune4 = "You will find a new hobby soon.";
const fortune5 = "It would be wise to avoid the color red today.";
const randomNumber = Math.floor(Math.random() * (5 - 1) + 1);
const selectedFortune; 

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

console.log(selectedFortune);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36

Challenge Information:

Build a Fortune Teller - Build a Fortune Teller

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-fortune-teller/66c06d618d075c7f7f1b890a.md at main · freeCodeCamp/freeCodeCamp · GitHub

Hi @abonny,

I’m seeing this syntax error in the console:

SyntaxError: unknown: Missing initializer in const declaration. (7:21)

   5 | const fortune5 = "It would be wise to avoid the color red today.";
   6 | const randomNumber = Math.floor(Math.random() * (5 - 1) + 1);
>  7 | const selectedFortune; 
     |                      ^
   8 |
   9 | if (randomNumber == 1) {
  10 |   selectedFortune = fortune1;

Look at Line 7. Is that permitted with const?

Happy coding