Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

even or odd in javascript

const isEven = (num) => num % 2 === 0;
console.log(isEven(5));// falseconsole.log(isEven(4));// true
Source by www.codelivly.com #
 
PREVIOUS NEXT
Tagged: #odd #javascript
ADD COMMENT
Topic
Name
9+9 =