Problem with syntax


Hello Everybody.
After minutes of trying i still don´t find out what´s wrong with the following syntax:

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

Following Error-Messages:

Oops, try again. There was a problem with your syntax.
SyntaxError: Unexpected identifier

Replace this line with your code.


Hi this line

if number (%2===0)

you should put the if condition around ()

if (condition) {

else {



Yes, you´re right. Thank you.


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