javascript ask for input in console code example
Example: javascript console input
//SpiderMonkey
var input = readline();
//Vanilla javascript
var input = prompt("Enter input:");
//SpiderMonkey
var input = readline();
//Vanilla javascript
var input = prompt("Enter input:");