<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/fun-with-console-log--cpkf7vhin" -->

---
title: Fun with console.log() 💿 | daily.dev
description: The method prints objects/ arrays as a neatly formatted tables. Sections can be collapsed and expanded in the console, but you can also have a section...
canonical: https://daily.dev/posts/fun-with-console-log--cpkf7vhin
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Fun with console.log() 💿 | daily.dev
og:description: The method prints objects/ arrays as a neatly formatted tables. Sections can be collapsed and expanded in the console, but you can also have a section...
og:url: https://daily.dev/posts/fun-with-console-log--cpkf7vhin
og:image: https://api.daily.dev/og/posts/cpkf7VHin.png
og:image:alt: Fun with console.log() 💿
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.

# Fun with console.log() 💿

**[Community Picks](https://daily.dev/sources/community)** · [@lissy93](https://daily.dev/lissy93) · 7 min read · 210 upvotes · 20 comments

## Summary

The method prints objects/ arrays as a neatly formatted tables. Sections can be collapsed and expanded in the console, but you can also have a section collapsed by default, by using instead of.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/lissy93/fun-with-consolelog-3i59>

## Community discussion

Top comments from developers on daily.dev.

**@saschabochum** · 2 upvotes

> I used sometimes the formatted console output. To present some eastereggs to som experienced user. That's quite funny sometimes.

**@funmulajohn** · 1 upvotes

> nice

**@hajraismail** · 1 upvotes

> Interesting one

**@vikasganiga05** · 1 upvotes

> Awesome! Thanks for sharing.

**@amy11** · 1 upvotes

> Nice pick

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/fun-with-console-log--cpkf7vhin)

```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":"Fun with console.log() 💿","url":"https://daily.dev/posts/fun-with-console-log--cpkf7vhin","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/fun-with-console-log--cpkf7vhin"},"datePublished":"2022-11-23T12:54:51.630Z","dateModified":"2023-12-07T12:02:45.284Z","description":"The method prints objects/ arrays as a neatly formatted tables. Sections can be collapsed and expanded in the console, but you can also have a section...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/76780689208c388bb5891e98748933d3","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/76780689208c388bb5891e98748933d3","isAccessibleForFree":true,"articleSection":"Community Picks","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":"Alicia Sykes","url":"https://daily.dev/lissy93","image":"https://media.daily.dev/image/upload/v1670545497/avatars/avatar_fmWbO5aySW7cNpICnr4OQ.jpg","description":"Just your average dev, trying to learn new things, meet fellow coders, and have a good time :)","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":1450}},"commentCount":20,"discussionUrl":"https://daily.dev/posts/fun-with-console-log--cpkf7vhin","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":210},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":20}],"keywords":"logging","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Community Picks","item":"https://daily.dev/sources/community"},{"@type":"ListItem","position":3,"name":"Fun with console.log() 💿"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/fun-with-console-log--cpkf7vhin","comment":[{"@type":"Comment","text":"I used sometimes the formatted console output. To present some eastereggs to som experienced user. That’s quite funny sometimes.","datePublished":"2022-12-22T17:21:30.574Z","url":"https://daily.dev/posts/cpkf7VHin#c-Lm1-L99z3","author":{"@type":"Person","name":"Sascha Bajonczak","url":"https://daily.dev/saschabochum","image":"https://lh3.googleusercontent.com/a/AEdFTp65tnmQ7cEn6fFB9XN_2x306Uo64sJghhxnc_k9ww=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"nice","datePublished":"2022-12-27T06:00:59.747Z","url":"https://daily.dev/posts/cpkf7VHin#c-r0w1dQGTM","author":{"@type":"Person","name":"John Tseng","url":"https://daily.dev/funmulajohn","image":"https://lh3.googleusercontent.com/a/AEdFTp4SmY2OUrOxWtMVRwNGebPlQErRnVTJVDpwhJUK=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Interesting one","datePublished":"2022-12-16T04:55:08.371Z","url":"https://daily.dev/posts/cpkf7VHin#c-3CTyDPfAV","author":{"@type":"Person","name":"Hajra Ismail","url":"https://daily.dev/hajraismail","image":"https://lh3.googleusercontent.com/a/AEdFTp4URj6pekZ8BnPrl4Uah0rrI9wprNtClbAzmHZw=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Awesome! Thanks for sharing.","datePublished":"2023-08-02T19:52:03.912Z","url":"https://daily.dev/posts/cpkf7VHin#c-JxZoYWxYb","author":{"@type":"Person","name":"Vikas Ganiga","url":"https://daily.dev/vikasganiga05","image":"https://avatars.githubusercontent.com/u/74750414?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Nice pick","datePublished":"2022-11-26T08:15:08.027Z","url":"https://daily.dev/posts/cpkf7VHin#c-8LsjLcxdU","author":{"@type":"Person","name":"Amy","url":"https://daily.dev/amy11","image":"https://media.daily.dev/image/upload/v1668152747/avatars/avatar_gtwj6vkAfBFpXng6dO6Op.jpg"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

