![Sofia Emelianova](https://web.dev/images/authors/sofiayem.jpg) Sofia Emelianova [GitHub](https://github.com/sofiayem)

<br />

The Console API allows you to log various messages to the **Console** from your JavaScript. The **Console**, in turn, has various useful display options. Watch the following video to learn all the skills.

[Video](https://www.youtube.com/watch?v=76U0gtuV9AY)

With the Console API, you can:

- Log, filter, and group the messages.
- Interact with the current page.
- Log variables.
- Log and display object in various formats: tables, HTML elements, JSON objects.
- Count function calls.
- Display stack traces.
- Measure the time elapsed between two points in code.

For a more hands-on learning experience, follow the [Log messages in the Console](https://developer.chrome.com/docs/devtools/console/log.md.txt) interactive tutorial.

For a comprehensive list of all the Console API methods, see the [Console API reference](https://developer.chrome.com/docs/devtools/console/api.md.txt).