JSchallenger

Check if a number is even

Viewed: 906
Attempted: 1066
Solved: 379
// Write a function that takes a number as argument
// If the number is even, return true
// Otherwise, return false

function myFunction() {

return
}
Test Cases:
myFunction(10)
Expected
true
myFunction(-4)
Expected
true
myFunction(5)
Expected
false
myFunction(-111)
Expected
false