Solution Review: Filter Even and Odd Numbers
This lesson discusses the solution to the challenge given in the previous lesson.
We'll cover the following...
We'll cover the following...
The program above has one basic function. The function isEven takes n as a parameter and returns a boolean value (see its header at line6). If n is even, it will return true; otherwise, it will return false. At line 4 ...