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
Open
+17
−0
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. |
Maths/CountDigit.js
Outdated
} | ||
|
||
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
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.