EDIT >> readline is not working, getting this message in the terminal "ReferenceError: readline is not defined"
Javascript noob here
I'm writing a program where I am trying to get an int from the user. I know how to do this usually within a HTML document however nothing is working within the .js file which I am running in the terminal of my linux machine.
for instance I want to say
console.log("enter your number");
//code that collects the int named var yourint
console.log ("your number was " + yourint);
It's really battering my brain, because I know I'm just drawing a blank and the solution is obvious.