odd-string
1.0.1 • Public • Published
A npm package to see if a number es odd, even, or neither
let is_odd = require("odd-string");
console.log(is_odd(3)); // prints "odd"
console.log(is_odd(2)); // prints "even"
The program will also print "neither" if the number is not even nor odd.
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
1.0.1 | 1 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
1.0.1 | 1 | |
1.0.0 | 1 | |
Package Sidebar
Install
Weekly Downloads