I wrote a simple program for finding the factorial of a given number, which I want to run on repl.it
. I would like to take standard input and output from the command line during it's execution. How can this be achieved?
Asked
Active
Viewed 932 times
-2
-
can you post some code please – damitj07 Mar 20 '18 at 14:59
-
2https://repl.it/@AshiqurRahman1/Stdin-and-Stdout-in-jS – Ashik Mar 20 '18 at 15:05
1 Answers
1
To use stdin/stdout in NodeJS on Repl.it, you have to add a file first, this will switch repl.it from repl mode to project mode.

Amjad Masad
- 4,035
- 1
- 21
- 20