Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Is even solution in Uncategorized category for Is Even by Elena_Korljukova
import assert from "assert";
var isEven = num => num%2 == 0
console.log('Example:');
console.log(isEven(2));
// These "asserts" are used for self-checking
assert.equal(isEven(2), true);
assert.equal(isEven(5), false);
assert.equal(isEven(0), true);
console.log("Coding complete? Click 'Check' to earn cool rewards!");
June 10, 2020