Course · Section 2: JavaScript Fundamentals – Part 1 · Lecture 11: Data Types
Implement `parity(n)` returning the string `even` or `odd` for an integer `n`.
+ 1 hidden test run on Submit.
The remainder of division by two tells you parity: zero means even, otherwise odd.
Run your code to see results.