odd-string
v1.0.1
Published
A function that tells if a number is even or odd
Downloads
4
Maintainers
Readme
odd-string
A npm package to see if a number es odd, even, or neither
Usage
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.
