Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Is Even by hkgok1
import assert from "assert";
function isEven(num: number): boolean {
// your code here
return (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!");
March 25, 2022
Comments: