Cant figure out what this reference error means


#1

I am in the process of adding an if/ else statement. it says 'reference error, invalid left-hand side in assignment'. What does this mean?


#2

Hi Paul, please paste your code here.


#3

You have to use == to compare (or even ===, if you want to compare types). A single = is for assignment.
So check which of this you use in your if statement.
this will correct your error