Console.log explanation

i do not quite understand this “console” term
also, what is console.log

The console is a place where commands are typed, and logs are logged. console.log(); is pretty straight forward, it LOGS stuff into the Console. You have to specify what you want to log inside the ( ) parentheses. Here’s an example:

var hello = "hello";
console.log(hello);// The console will log "hello"


Specifically for the FreeCodeCamp editor that you use in the curriculum, the console is the small text box below your code.

Logging can be helpful for seeing what your code is doing, or what a function is returning.

1 Like

thank you for your help