Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdded Digit Count program #234
Conversation
how to add npm standards? |
Just run npm install, it will install all the dependecies. |
Sheraff
commented
Aug 6, 2020
This doesn't work for |
@Sheraff thanks for notifying me. I have updated my program and it's working fine now. |
} | ||
|
||
console.log('The number of digits in the number: ' + CountDigit(parseInt(prompt('Enter number: ')))); |
This comment has been minimized.
This comment has been minimized.
itsvinayak
Aug 7, 2020
Member
@Utsav1999, thank you for your contribution
this is from the library function
const prompt = require('prompt-sync')();
this line is required
we are using nodejs to run and test code.
prompt is a lib function to take input, window.prompt will not work in node
to install
npm install prompt-sync
any update @itsvinayak ? |
@Utsav1999, thank you for your contribution this is from the library function resource |
Utsav1999 commentedJul 25, 2020
Welcome to JavaScript community
Describe your change:
I added a program that will ask a user to give a number as an input. Then it will count the number of digits present in the number and will print it to the console.