What does console.log mean is JavaScript? What does it do? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What does console.log mean is JavaScript? What does it do?

14th Oct 2018, 5:31 PM
Federico Riva
6 Answers
+ 9
I don't know JavaScript at all yet, but I found this on the web: https://stackoverflow.com/questions/4539253/what-is-console-log So I think it is a good way to debug/check your code...? 🤔
14th Oct 2018, 5:43 PM
Christine
Christine - avatar
+ 6
Gaël Des Iris good explanation! 😃👍
15th Oct 2018, 1:23 AM
Christine
Christine - avatar
+ 3
from what i understand, console.log allows to see what happens in your javascript code without using html. it's a windows where the result of a function can be displayed. for example , if you write an function doing an operation (like summary) , you can display the result in the console log.
15th Oct 2018, 12:39 AM
Gaël Des Iris
Gaël Des Iris - avatar
+ 3
thanks Christine ! 😁
15th Oct 2018, 1:31 AM
Gaël Des Iris
Gaël Des Iris - avatar
+ 2
yes, it's an alternative
15th Oct 2018, 8:21 PM
Gaël Des Iris
Gaël Des Iris - avatar
0
Gaël Des Iris thanks, so basically it's similar to document.write()?
15th Oct 2018, 7:11 AM
Federico Riva