how to input text in the console for javascript 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:");