Skip to content

A npm package to see if a number es odd, even, or neither

License

Notifications You must be signed in to change notification settings

mlombas/odd-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A npm package to see if a number es odd, even, or neither

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published