how to read console output in javascript code example
Example 1: how to print to console javascript
console.log("string")
Example 2: how to print console in javascript
console.log("message here")
Example 3: get console javascript
//What you can do is hook the console.log function so that you store when it logs :
console.stdlog = console.log.bind(console);
console.logs = [];
console.log = function(){
console.logs.push(Array.from(arguments));
console.stdlog.apply(console, arguments);
}