Notes

CONSOLE API

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

Window Object Methods