1.0.1 • Published 4 years ago

odd-string v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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.