- 1

What is console.log in javascript

explain how to use it in JS and what is the use of it?

23rd Jul 2017, 11:11 AM
mhd sharuk
mhd sharuk - avatar
2 Answers
+ 3
it is quite similar to document.write but console.log won't produce output in the Document.. it will display in a Console window
23rd Jul 2017, 11:17 AM
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ 
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ  - avatar
+ 4
it is a developer tool.. usually used to check whether your program is working fine or not.. and if there is an error then to which line and what type of error is checked.. and can be placed anywhere. and mostly used when there is large number of codes..
23rd Jul 2017, 11:16 AM
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ 
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ  - avatar