Preview:
let raceNumber = Math.floor(Math.random() * 1000);
console.log(raceNumber);

let early = false;

let age = 18;

if(early && age >18){
  raceNumber += 1000;
}

if(early && age >18){
  console.log(`You will race at 9:30am and your race number is ${raceNumber}`);
}else if(!early && age>18){
  console.log(`You will race at 11:00am and your race number is ${raceNumber}`)
}else if(age < 18){
  console.log(`You will race at 12:30pm and your race number is ${raceNumber}`);
} else( console.log("Go to the registration desk please."))

downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter