I want to ask the user through the console to enter a number. I then want to store it into a variable to have it used for a function etc. Here is an example of what I have done. When i do this it says ReferenceError: readline is not defined
console.log("Enter your guess and press <Enter>: /t" );
var userNumber = readline();
I am just trying to create an interactive js console app for now.
Edit: Here is my source code http://repl.it/NeI/4