Hi friends,
I’ve looked at several Race Day forum help responses. Can’t find my problem. When i hit “save” there are no error messages. But nothing prints to the console. I watched the expert help video. Can’t figure out the problem1
let raceNumber = Math.floor(Math.random() * 1000);
const early = true;
const age = 22;
if(age > 18 && early) {
raceNumber += 1000
};
if(age > 18 && early) {
console.log(You will race at 9:30 a.m. and your race number will be ${raceNumber}
);
};
else if(age > 18 && !early) {
console.log(You will race at 11am and your race number will be ${raceNumber}
)
};
else if (age < 18) {
console.log(You will race at 12:30 pm and your race number will be ${raceNumber}
);
else {
console.log(‘Go see the front desk.’)
}
};
console.log();
console.log(raceNumber);