+ 1

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

14th Oct 2018, 5:31 PM
Federico Riva
6 Respostas
+ 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