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.
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 interactive tutorial.
For a comprehensive list of all the Console API methods, see the Console API reference.
This post is also available in: English