The question is pretty straightforward, but with a small extra:
Of course I have already googled, but if I try out e.g. readline() in a single JavaScript file within VSCode, it doesn’t work. (Or within codepen for that matter)
So is there any way to do this in a similar way to how it’s done with python and input()?
Thanks for your answers!
Edit: Alright, on repl.it this seems to work when I use prompt().
What’s the reason why this doesn’t work with VSCode for example?