Javascript Introduction

JS console.log()


JavaScript console.log()

All modern browser has console now days. When we want to write something on that console we use console.log. for Example:

console.log("Hi there");
let a = 44;
console.log(a);
let obj = {
      name: "Amit Kumar",
      age : "27"
}
console.log(obj);

Output:

//output
Hi there
44
{
      name: "Amit Kumar",
      age : "27"
}

Console log is very important it used to print everything in JS in console