<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/NtP5hTSPd" -->

---
title: Use console.log() like a pro! | daily.dev
description: The console object provides access to the browser’s debugging console. The specifics of how it works varies from browser to browser, but there is a de facto...
canonical: https://daily.dev/posts/use-console-log-like-a-pro--ntp5htspd
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Use console.log() like a pro! | daily.dev
og:description: The console object provides access to the browser’s debugging console. The specifics of how it works varies from browser to browser, but there is a de facto...
og:url: https://daily.dev/posts/use-console-log-like-a-pro--ntp5htspd
og:image: https://api.daily.dev/og/posts/NtP5hTSPd.png
og:image:alt: Use console.log() like a pro!
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Use console.log() like a pro!

**[Hashnode](https://daily.dev/sources/hashnode)** · [@denicmarko](https://daily.dev/denicmarko) · 3 min read · 44 upvotes · 9 comments

## Summary

The console object provides access to the browser’s debugging console. The specifics of how it works varies from browser to browser, but there is a de facto set of features that are typically provided. The console.log output can be styled in DevTools using the CSS format specifier.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://denic.hashnode.dev/use-consolelog-like-a-pro>

## Community discussion

Top comments from developers on daily.dev.

**@devguerra** · 2 upvotes

> New features to learn and improve me code

**@iamdarshshah** · 2 upvotes

> Hey Marko,👋
>
> Great article!!👏
>
> I've written about JavaScript Console API a couple of days back. Here it is: https://app.daily.dev/posts/I-tOKsCWGF
>
> Do share your feedback.😃

**@ghost** · 2 upvotes

> I used the custom CSS method in one of the open source projects recently. Good write-up!

**@rfornal** · 1 upvotes

> Good solid article. Little embellishments, but great examples.

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#logging](https://daily.dev/tags/logging)

[View this post on daily.dev](https://daily.dev/posts/use-console-log-like-a-pro--ntp5htspd)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Use console.log() like a pro!","url":"https://daily.dev/posts/use-console-log-like-a-pro--ntp5htspd","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/use-console-log-like-a-pro--ntp5htspd"},"datePublished":"2020-11-23T09:16:27.514Z","dateModified":"2021-10-07T14:17:10.317Z","description":"The console object provides access to the browser’s debugging console. The specifics of how it works varies from browser to browser, but there is a de facto...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b94c6a671d7cad2e0fef42305612439f","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b94c6a671d7cad2e0fef42305612439f","isAccessibleForFree":true,"articleSection":"Hashnode","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Marko Denic","url":"https://daily.dev/denicmarko","image":"https://lh3.googleusercontent.com/a-/AOh14GjKNvEa8cLkBcuu66EkMDR5AxsgErwMfRngopPRUg=s100","description":"Doer.","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":630}},"commentCount":9,"discussionUrl":"https://daily.dev/posts/use-console-log-like-a-pro--ntp5htspd","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":44},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":9}],"keywords":"javascript,logging","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hashnode","item":"https://daily.dev/sources/hashnode"},{"@type":"ListItem","position":3,"name":"Use console.log() like a pro!"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/use-console-log-like-a-pro--ntp5htspd","comment":[{"@type":"Comment","text":"New features to learn and improve me code","datePublished":"2020-11-23T10:50:02.001Z","url":"https://daily.dev/posts/NtP5hTSPd#c-pntY3b1pn","author":{"@type":"Person","name":"Roberto Guerra","url":"https://daily.dev/devguerra","image":"https://avatars2.githubusercontent.com/u/6579736?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"Hey Marko,👋\nGreat article!!👏\nI’ve written about JavaScript Console API a couple of days back. Here it is: https://app.daily.dev/posts/I-tOKsCWGF\nDo share your feedback.😃","datePublished":"2020-11-23T13:04:03.183Z","url":"https://daily.dev/posts/NtP5hTSPd#c-alU8FjmgM","author":{"@type":"Person","name":"Darsh Shah","url":"https://daily.dev/iamdarshshah","image":"https://lh3.googleusercontent.com/a-/AOh14Ghqnx55WjuxGGDacb1iMPneBAdS0zBjkfwYu8FhkQ=s100"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"I used the custom CSS method in one of the open source projects recently. Good write-up!","datePublished":"2020-11-23T13:43:58.385Z","url":"https://daily.dev/posts/NtP5hTSPd#c-LH8l3IcbZ","author":{"@type":"Person","name":"Deleted user","url":"https://daily.dev/ghost","image":"https://media.daily.dev/image/upload/s--hNIUzLiO--/f_auto/v1705327420/public/ghost_vlftth"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"Good solid article. Little embellishments, but great examples.","datePublished":"2020-11-24T15:14:45.049Z","url":"https://daily.dev/posts/NtP5hTSPd#c-qSXGBsf4J","author":{"@type":"Person","name":"Bob Fornal","url":"https://daily.dev/rfornal","image":"https://lh3.googleusercontent.com/a-/AOh14Gj2w_EqKb5Jlbize6-gm6oXVU1CV3KM2mEuTrAhCQ=s100"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

