"Race Day" JavaScript Help

I have a question about the “Race Day” project in JavaScript. Here is the link:
https://www.codecademy.com/courses/introduction-to-javascript/projects/race-day

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

}

console.log(raceNumber);

Thanks.

should be:

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

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