how to take input from console in 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:");