Race Day - Codecademy Project

Hey All,

I’ve been staring at this for a while trying to figure out why it isn’t working. If anyone could take a look to help me figure it out, I would greatly appreciate it. I’m very new to JavaScript so any input is greatly appreciated. Link below to my code:

Thank you!

Your only real problem is with this segment:

else (runnersAge = 18){
  console.log(`Please go to the registration desk to view your race time`);
}

You can’t have a condition in an else statement. You also don’t need to test any condition here. The code in the else block will only execute if none of the previous conditions are met.
Change it to the following, and it should work as expected:

else { 
   //your code here
}
1 Like

That worked perfectly, thank you so much for your help!!

1 Like