window console input code example
Example 1: how to print to console javascript
console.log("string")
Example 2: javascript console input
//SpiderMonkey
var input = readline();
//Vanilla javascript
var input = prompt("Enter input:");
console.log("string")
//SpiderMonkey
var input = readline();
//Vanilla javascript
var input = prompt("Enter input:");