So far I've been learning JS (basics) and I've been coding in Sublime. And I used to run the code in the browser. I decided (had to) to switch to VSCode and I am pretty unfamiliar with it. I set up Node and now I am trying to find alternative to prompt()
.
I used to code like this:
let x = prompt();
but now I can't use prompt in node. I read some threads about it, but I could not find the answer.
What is the alternative way and how can I use it? For example if I want to store the line I typed in a variable.
I just saw some example in c++. I've been looking for something like cin