//function to check if a number is even
function isEven(num) {
// return true if num is even
return num % 2 === 0;
}
//example
const result = isEven(2);
//output
console.log(result); //true
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)