how to take input in javascript console code example
Example 1: how to ask input in javascript
let name=prompt("What is your name?");
console.log("Hi "+name)
Example 2: javascript console input
//SpiderMonkey
var input = readline();
//Vanilla javascript
var input = prompt("Enter input:");