Exercises
Last updated
Was this helpful?
Last updated
Was this helpful?
In JavaScript, we use console.log()
to write a message (the content of a variable, a given string, etc.) in console
. It is mainly used for debugging purposes, ideally to leave a trace of the content of variables during the execution of a program.
Visit the chapter to understand more about variables.