<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/console-log-alternatives-you-didn-t-know-mxck-zrxe" -->

---
title: console.log alternatives you didn&#x27;t know | daily.dev
description: Using the destruction power of javascript objects, you can use destructuring. You can change the log function to any other name you want. This method is used...
canonical: https://daily.dev/posts/console-log-alternatives-you-didn-t-know-mxck-zrxe
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: console.log alternatives you didn&#x27;t know | daily.dev
og:description: Using the destruction power of javascript objects, you can use destructuring. You can change the log function to any other name you want. This method is used...
og:url: https://daily.dev/posts/console-log-alternatives-you-didn-t-know-mxck-zrxe
og:image: https://api.daily.dev/og/posts/mxck_ZRxe.png
og:image:alt: console.log alternatives you didn&#x27;t know
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.

# console.log alternatives you didn't know

**[DevDojo](https://daily.dev/sources/devdojo)** · [@posandu](https://daily.dev/posandu) · 2 min read · 478 upvotes · 38 comments

## Summary

Using the destruction power of javascript objects, you can use destructuring. You can change the log function to any other name you want. This method is used to measure time. It's used to check if a condition is true. If it's not, it will throw an error.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://devdojo.com/posandu/consolelog-alternatives-you-didnt-know>

## Community discussion

Top comments from developers on daily.dev.

**@emi316** · 3 upvotes

> Useful tips to save time, thanks you!

**@bytefer** · 3 upvotes

> These debugging tips are so useful for web developers, thanks!

**@elwynynion** · 3 upvotes

> Nicee

**@corneflex** · 3 upvotes

> 18 years of programming and still learning new things :D. Thank you for the tips

**@bobbyiliev** · 2 upvotes

> Great tips!

## 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: [#testing](https://daily.dev/tags/testing), [#html](https://daily.dev/tags/html)

[View this post on daily.dev](https://daily.dev/posts/console-log-alternatives-you-didn-t-know-mxck-zrxe)

```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":"console.log alternatives you didn't know","url":"https://daily.dev/posts/console-log-alternatives-you-didn-t-know-mxck-zrxe","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/console-log-alternatives-you-didn-t-know-mxck-zrxe"},"datePublished":"2022-08-02T15:08:59.537Z","dateModified":"2022-08-02T15:08:59.473Z","description":"Using the destruction power of javascript objects, you can use destructuring. You can change the log function to any other name you want. This method is used...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c47401909755ff058e23e08b7699cae7","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c47401909755ff058e23e08b7699cae7","isAccessibleForFree":true,"articleSection":"DevDojo","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":"Posandu Mapa","url":"https://daily.dev/posandu","image":"https://media.daily.dev/image/upload/s--mDoRSPBf--/f_auto,q_auto/v1/avatars/avatar_Rh4YgFkJ8JiKojzt2CvRH","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":4745}},"commentCount":38,"discussionUrl":"https://daily.dev/posts/console-log-alternatives-you-didn-t-know-mxck-zrxe","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":478},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":38}],"keywords":"testing,html","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DevDojo","item":"https://daily.dev/sources/devdojo"},{"@type":"ListItem","position":3,"name":"console.log alternatives you didn't know"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/console-log-alternatives-you-didn-t-know-mxck-zrxe","comment":[{"@type":"Comment","text":"Useful tips to save time, thanks you!","datePublished":"2022-08-03T09:52:31.827Z","url":"https://daily.dev/posts/mxck_ZRxe#c-kSD4UjNXw","author":{"@type":"Person","name":"Emilie","url":"https://daily.dev/emi316","image":"https://lh5.googleusercontent.com/-ZPvE5gFh6qQ/AAAAAAAAAAI/AAAAAAAAAAA/AMZuucnOQL7hipQiqJ7D49RohwOpSpH9xA/s100/photo.jpg"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"These debugging tips are so useful for web developers, thanks!","datePublished":"2022-08-06T15:24:57.182Z","url":"https://daily.dev/posts/mxck_ZRxe#c-_d55LYric","author":{"@type":"Person","name":"bytefer","url":"https://daily.dev/bytefer","image":"https://lh3.googleusercontent.com/a-/AFdZucqlbOI8UzgORH9IT5mtLClCpRPYl-bBI9zaDVVd=s100"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"Nicee","datePublished":"2022-08-05T13:15:06.706Z","url":"https://daily.dev/posts/mxck_ZRxe#c-naP28eigv","author":{"@type":"Person","name":"Elwyn","url":"https://daily.dev/elwynynion","image":"https://avatars.githubusercontent.com/u/86156480?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"18 years of programming and still learning new things :D. Thank you for the tips","datePublished":"2022-08-04T18:22:10.599Z","url":"https://daily.dev/posts/mxck_ZRxe#c-FIfHBcOiU","author":{"@type":"Person","name":"steve campos","url":"https://daily.dev/corneflex","image":"https://lh3.googleusercontent.com/a-/AOh14Ghdo4Km4SsurbTrOtiC1bclToMxoBWj-I0p_2RYKw=s100"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"Great tips!","datePublished":"2022-08-03T11:17:37.876Z","url":"https://daily.dev/posts/mxck_ZRxe#c-DCOTLNgHf","author":{"@type":"Person","name":"Bobby Iliev","url":"https://daily.dev/bobbyiliev","image":"https://avatars3.githubusercontent.com/u/21223421?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}}]}
```

