If/else help please!


#1

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

I can't see what is wrong, can anyone help me clarify please? thanks!

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

isEven = ();

#2

Take out the closing brace before your else. You have an unmatched brace there


#3

"=" sign doesn't belong here, too.


#4

of course... feel stupid now! :slight_smile:
but thanks a lot to both of you.


#5

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