console.log()

A function that prints values to the developer console, the text panel in the browser's developer tools, or to the terminal when code runs in Node.js.

In more detail

Every course example reports its result with console.log. It accepts any number of values and prints them separated by spaces, so it is the quickest way to see what code is doing.

Related terms

Taught in

References