Race Day


I am not sure what is wrong with my code up to step 4 on the Race Day project

let raceNumber = Math.floor(Math.random()*1000);

let registrationTime = true;

let runnerAge = 25;

if (registrationTime = true){
raceNumber = Math.floor(Math.random()*1000+1000)
else { raceNumber = Math.floor(Math.random()*1000)};

if (runnerAge >= 18 && registrationTime = false){
console.log('You will race at 9:30 am and your race number is ${raceNumber}.)
else {console.log(‘You are racing another time’)};

This looks like JavaScript, not Java. The two languages have no connection to each other beyond being derived from C.

Please post a link to the exercise. Thanks.

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