Lesson 9.2 feedback


#1

The initial state on 9.2 is:

var isEven = function(number) {
if (number % 2 === 0) {return true}
else(); {return false}
};

when I added my 'if else' in, I kept getting an Syntax error for unexpected token ). Eventually I figured out the exissting parenthesis on the else statement needed to be removed, but it was really frustrating to have to fix the pre-generated script so the part I added would work. Unless there is a reason that is there that I am totally missing, it might be a good idea to remove it from the initial starting point script.


#2

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