Checks if the given number is even.
%
) operator.true
if the number is even, false
if the number is odd.const isEven = num => num % 2 === 0;
isEven(3); // false
Would you like to help us improve 30 seconds of code?Take a quick survey
JavaScript, Math
Checks if the given value is a number.
JavaScript, Math
Checks if the given number falls within the given range.
JavaScript, Math
Checks if the given value is equal to negative zero (-0
).