RaceDay Project - Help

I am just beginning the RaceDay project in the JavaScript section. Could someone help me figure out what I am doing wrong here and why I seem to be getting that error?!

Please find attached a screenshot. Many thanks.

2 Likes

this error is so common, MDN devoted an entire page to it:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Invalid_assignment_left-hand_side

3 Likes

Thanks! I feel stupid. It should have been earlyRegister == true.

1 Like

google is your friend.

Are you sure you don’t want to use strict/identity equality:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators#Identity

2 Likes

Don’t feel stupid. Just remember Fail is a First Attempt In Learning.

I hope this helps =)

2 Likes

Hi There,

Been scratching my head on this for hours! Can someone please tell me why I am getting a syntax error here?


Thank you in advance!

1 Like

the semi-colon on line 7 ends the if statement, while it isn’t finished yet

using semi-colons is absolutely recommend, but in the right places

2 Likes

Ahh alleluia! thank you very much for your help with this! Was beginning to go crazy there for a while. :grinning:

1 Like