Race day project please help!

Hello everyone, I wondering if you can help me here with the raceday project. I’ve managed to get the code working except for
else if (!earlyRegistered && runnersAge > 18) {
console.log (If runner is over 18 and did not register early they will race at 11:00am. Your race number is ${raceNumber})

I dont seem to get this to log even when I put earlyRegistered = false.

Am I doing something wrong?

Hi there, welcome to the community!

You just have to fix your = signs on your if statements. Using a single = means you’re assigning a value to a variable, not comparing the value of the variable to something else. In order to compare two values you have to use either == or ===.

Hope this helped! :smiley_cat:


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.