Read an integer (use 42) and print whether it is even or odd.
Ready — edit the code above and click Run.
console.log("See solution in explanation");
Try solving on your own first, then reveal the official answer.
Modulo % 2 is zero for even numbers—common interview warm-up.