Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Odd number function in javascript

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

}
var input = 343;
var result = isOdd(input);
console.log(result)
//Outpur: true
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Odd #number #function #javascript
ADD COMMENT
Topic
Name
8+1 =