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