Exercise 5 · Chapter: FunctionsRequired+50 XP
Is Even
Write a function isEven(n) that returns true if n is even, false if odd.
Read a number and print the result.
Example 1: Input 4 → Output true
Example 2: Input 7 → Output false
Need a hint?
3 available · costs 5 XP each
javascript
Output
Run your code to see the output here.