Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (6.1k points)
Can anybody tell me what is the use of console.log() in Javascript?

1 Answer

0 votes
by (11.7k points)

Whenever we want to print any message on the screen or anything we want to present to the user on-screen, we use a function called console.log().

It accepts an array, an object or any message as a parameter. It returns the value of the parameters given.

Example:

<script> 

var i = 9; 

console.log(i); 

</script> 

Want to become proficient in web development, here is a course from Intellipaat for you.

Related questions

0 votes
1 answer
asked Apr 29, 2021 in Java by sheela_singh (9.5k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...