9.More on control flow- ex. 1



Replace this line with your code. 
var isEven = function(number) {
  // Your code goes here!
  var n = Math.floor(Math.random()*5);
  if(n % 2===0){
     return true;
     return false;


the exercise is going to call the function multiply times, so you should check if number (the function parameter) is even or odd


the exercise is going to call the function to validate your function is working correctly, so each time the function gets called, number will hold an actual number of which you need to check it is even or odd, so then the if condition becomes something like this:

if(number % 2 == 0)

remove the the random number generator.


oh, i see..., thank you!