Skip to content

vijayjoshi16/my-first-npm-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

My first NPM Package

Fed up everytime finding a solution on stackoverflow for the question 'How to check whether a no. is odd or not in Javascript?'😭

Here's a quick solution😀

This npm package contains the function to check whether a no. is odd or not😅

Step 1: Install the package

npm i @vijayjoshi16/is-odd

Step 2: Import the package

const isOdd = require('@vijayjoshi16/is-odd');

Step 3: Call the inbuilt functions to do the task

console.log(isOdd(1));

Feel free to contribute to this package😜. For more details, visit this npm page for the package https://www.npmjs.com/package/@vijayjoshi16/is-odd