-2

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?

Mikev
  • 2,012
  • 1
  • 15
  • 27
Ashik
  • 2,888
  • 8
  • 28
  • 53

1 Answers1

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.

See: https://repl.it/@amasad/Stdin-and-Stdout-in-jS

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