Console

Examples of usage of console.

console.info("some info");

console.warn("some warning");

console.log("%s is %d years old.", "Bob", 42);

console.log("%cThis is green text on a yellow background.", "color:green; background-color:yellow");

var myObject = {name:"Fred", age:"21"};

console.log("User details", myObject);

 

var myObject = {name:"Fred", age:"21"};

console.log("User details", myObject);

 

console.table([[10, true, "blue"],[5, false, "foo"]])

 

console.table({"London":{population:8173194, country:"UK", elevation:"24m"},"New York":{population:8336697, country:"USA", elevation:"10m"}},["population", "country"])