odd-string

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i odd-string

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

2.26 kB

Total Files

4

Last publish

Collaborators

  • mocoma