CONSOLE API
log() method writes (logs) a message to the console. console.log("Hello Sathi haru");
clear() method clears the console.console.clear();
assert() method writes a message to the console if an expression evaluates to false.console.assert(4==(6-2));
count() method counts the number of times console.count() is called.error() method writes an error message to the console.console.error("Error404");
table() method writes a table to the console.console.table(["audi", "mercedes", "lambo"]);
warn() method writes a warning to the console.console.warn("this is an warning");
info() method writes a message to the console.console.info("Hello world!");
group() method starts a message group.console.log("Hello world!");console.group();console.log("Hello again, this time inside a group!");
Window Object Methods