"Race Day" JavaScript Help

I have a question about the “Race Day” project in JavaScript. Here is the link:

Whenever I run my code, I get an error. I checked my raceNumber variable to make sure everything is correct. Here are my scripts:

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

const registeredEarly = true;

let runnerAge = 19;

if (runnerAge > 18 && registeredEarly = true) {

let raceNumber += 1000




should be:

if (runnerAge > 18 && registeredEarly == true) {

You need == because you are checking if its equal, not assigning the value to the variable.