Open Omar-Walid-MD opened 5 months ago
You need to use the NodeJS ways of getting the stdin
like process.stdin
Thanks. Is there any way it can be used in a function that works in a similar way to python's input? Something like "const n = input()"
There are multiple ways to read from stdin in NodeJS. You can use ones that don't require external NPM modules.
Functions like prompt() and readLine() aren't defined and their packages cannot be imported. Is there a way to read input using JavaScript?