How to use Console in java Script

Today we are Discuss about how to use Console in Java script ? Console in using for the show the data in log Without Printing on Fronted.

You can Print Variable, Array as well as Object in Console. This the easy way to Print Data in Log

# First We Print a Variable in Console.log in Java Script

var a = 1;
var b = 2;
var c = a + b;

console.log(c);

# Second We Print a Array in Console.log in Java Script

var cars = ["BMW","Honda","Jeep"];
console.log(cars);

# Last We Print a Object in Console.log in Java Script

var person = {
    firstname : "abc",
    lastname : "xyz",
    age : "22"
}
console.log(person);

For More Detail Open Video

Leave a Reply

Your email address will not be published. Required fields are marked *