Have ideas to improve npm?Join in the discussion! »

    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.

    Install

    npm i odd-string

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.26 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar