+ 1
What does console.log mean is JavaScript? What does it do?
6 odpowiedzi
+ 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...? 🤔
+ 6
Gaël Des Iris good explanation! 😃👍
+ 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.
+ 3
thanks Christine ! 😁
+ 2
yes, it's an alternative
0
Gaël Des Iris thanks, so basically it's similar to document.write()?