Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Even number function in javascript

function isEven(numbers) {
    if (numbers % 2 == 0) {
        return true;
    }
    return false;

}
var input = 22;
var result = isEven(input);
console.log(result)
//Outpur: true
 
PREVIOUS NEXT
Tagged: #Even #number #function #javascript
ADD COMMENT
Topic
Name
3+7 =