Code review appreciated for Race Day project - JS

Hello,

I have just completed the JavaScript race day project. Any feedback on my code would be greatly appreciated!

let raceNumber = Math.floor(Math.random() * 1000);
let earlyRaceNumber = Math.floor(Math.random() * 1000 + 1000);
let runnerRegEarly = "";
let runnerAge = 18;
if (runnerAge > 18 && runnerRegEarly) {
  console.log(
    `Your race will begin at 09:30. Your race number is ${earlyRaceNumber}.`
  );
} else if (runnerAge > 18 && !runnerRegEarly) {
  console.log(
    `Your race will begin at 11:00. Your race number is ${raceNumber}.`
  );
} else if (runnerAge < 18) {
  console.log(
    `Your race will begin at 12:30pm. Your race number is ${raceNumber}`
  );
} else {
  console.log("Please see the registration desk.");
}

Hello, I cant give you feedback as such as im only just learning myself. This looks different to mine and probably better from my understanding. here’s mine, please feel free to criticize my code as I’m not even sure if its correct haha
im not quite sure how you managed to post your code so I’ll copy and paste and also send the gist link. thankyou :slight_smile:

let raceNumber = Math.floor(Math.random() * 1000);
const registeredEarly = false;
const registeredLate = true;
const age = 19;
if (age > 18 && registeredEarly) {
console.log('The race will begin for the early over 18s at 9:30am and your race number is ’ + (1000 + raceNumber));
}
else if (age > 18 && registeredLate) {
console.log('The race will begin for the late over 18s at 11:00am and your race number is ’ + (raceNumber));
}
else if (age < 18) {
console.log('The race will begin for the under 18s at 12:30pm and your race number is ’ + (raceNumber));
}
else if (age === 18 || registeredEarly)
console.log(‘For peaple who are 18, please refer to the registration desk.’)