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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.11latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.11
1.0.01

Package Sidebar

Install

npm i odd-string

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

2.26 kB

Total Files

4

Last publish

Collaborators

  • mocoma