What is console.log() used for | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is console.log() used for

23rd Sep 2020, 4:02 PM
ish gupta
ish gupta - avatar
3 Answers
+ 3
ish gupta For the purpose of debugging..
23rd Sep 2020, 4:33 PM
Piyush
Piyush - avatar
0
It's mostly for testing and debugging purposes. If you want to see the output of an operation, just console log it and check the browser console.
23rd Sep 2020, 4:26 PM
CHMD
CHMD - avatar