javascript console code example
Example 1: how to print to console javascript
console.log("string")
Example 2: install moment in goole dev console
fetch('https://momentjs.com/downloads/moment.min.js')
.then(response => response.text())
.then(text => eval(text))
Example 3: javascript console mensaje
console.log("This is a log");
Example 4: javascript console input
//SpiderMonkey
var input = readline();
//Vanilla javascript
var input = prompt("Enter input:");
Example 5: javascript log to console
console.log('message1' + ' - ' + 'message2')
Example 6: javascript console
console.log('log-message'); // Outputs a normal information log to the console window
console.warn('warn-message'); // Outputs warning in the console window
console.error('error-message'); // Outputs error in the console window
console.table('table-message'); // Outputs a table of all the object properties