Help! Don't Know What This Error Means


#1


https://www.codecademy.com/courses/javascript-beginner-en-qDwp0/0/1?curriculum_id=506324b3a7dffd00020bf661#


ReferenceError: Invalid left-hand side in assignment. Don't Know What's Wrong

My Code Is Below:

var isEven = function(number) {
// Your code goes here!
if(number%2=0){
return true
}else{
return false
}
};
isEven(10);


Replace this line with your code.


#2

this line
if(number%2=0){

= and == are not same .for assignment you have to use = and for checking you should use == or ===


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.