---
title: "Discussion on \"It's 2022, don't use the console.log(😎)\" | Hashnode"
description: "Discussion on \"It's 2022, don't use the console.log(😎)\". In this article, I have discussed why you should not use a console.log() in 2022"
url: "https://hashnode.com/posts/its-2022-dont-use-the-consolelog/622361ede814324bc83a8472"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [It's 2022, don't use the console.log(😎)](https://codewithsnowbit.hashnode.dev/its-2022-dont-use-the-consolelog?utm_source=hashnode&utm_medium=feed)

In this article, I have discussed why you should not use a console.log() in 2022

Mar 5, 2022 · 2 min read · codewithsnowbit.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#html5](https://hashnode.com/tag/html5)

## Written by

[Dhairya Shah](https://hashnode.com/@codewithsnowbit)

@codewithsnowbit

  
[View profile](https://hashnode.com/@codewithsnowbit)

Frontend Web Developer | Technical Writer

I am 17 years old and a young passionate and self-taught frontend web developer and have an intention to become a successful developer. I usually write about JavaScript and Web Development and share some tips in the articles.

## Responses 7

Markdown supported · ⌘↵ to post

[Taranpreet Singh](https://hashnode.com/@TaranpreetSingh)

[Mar 13, 2022](https://hashnode.com/posts/its-2022-dont-use-the-consolelog/622361ede814324bc83a8472/comment/622e038cdf08b9b82341915f)

Hi, I am 15 years old and love writing in the next js. How can I reach you? If you are interested in the world's 1st self community website, you can message me on discord -- [discord.gg/4tWJPc7c3E](https://discord.gg/4tWJPc7c3E)

[Benjamin Semah](https://hashnode.com/@benjaminSemah)

[Mar 7, 2022](https://hashnode.com/posts/its-2022-dont-use-the-consolelog/622361ede814324bc83a8472/comment/6225a300d858116153ef2099)

This never crossed my mind. Wow! So cool. Thanks for sharing this. I'll definitely start using it.

[Dhairya Shah](https://hashnode.com/@codewithsnowbit)

[Mar 7, 2022](https://hashnode.com/posts/its-2022-dont-use-the-consolelog/622361ede814324bc83a8472/comment/6225a300d858116153ef2099#reply-6225b758c705276a2dd2f7cf)

You're welcome [Benjamin Semah](https://hashnode.com/@benjaminSemah)

Happy coding!

[Amit yadav](https://hashnode.com/@iamityadav)

[Mar 6, 2022](https://hashnode.com/posts/its-2022-dont-use-the-consolelog/622361ede814324bc83a8472/comment/6224ff82d858116153ef13d6)

I use this one.

```
const debugApp = false;
const debugMsg = (msg) => debugApp && console.log(msg)
```

[Rohit Purkait](https://hashnode.com/@codeswithroh001)

[Mar 6, 2022](https://hashnode.com/posts/its-2022-dont-use-the-consolelog/622361ede814324bc83a8472/comment/62245309e814324bc83a9f69)

Great tip given in general. This is called working smart. Although for all the devs out there I would suggest you to use debugger because the habit of writing `console.log()` will become very confusing to find any error especially when your project scales up.

[Vitor Acacio](https://hashnode.com/@itsvitoracacio)

[Mar 6, 2022](https://hashnode.com/posts/its-2022-dont-use-the-consolelog/622361ede814324bc83a8472/comment/62243202e814324bc83a9b68)

I was getting annoyed by having to type the full thing so many times, especially when debugging JS code, and my solution was to add a user code snippet to VSCode that stores it. So now I just press `cl`, and it already suggests the full method. The beauty of it is that you can create snippets for literally anything you want!

[Jorge Romero](https://hashnode.com/@JorgeRL)

[Mar 6, 2022](https://hashnode.com/posts/its-2022-dont-use-the-consolelog/622361ede814324bc83a8472/comment/622414ade814324bc83a9859)

One thing I like to do is write a "logger" module. Just a set of thin wrappers over console.log(). But I can for example, use it as a request logger middleware in Express, an error logger, and so on :)

[Miki Szeles](https://hashnode.com/@mszeles)

[Mar 5, 2022](https://hashnode.com/posts/its-2022-dont-use-the-consolelog/622361ede814324bc83a8472/comment/6223c022e814324bc83a92cc)

Thanks for the advice. I will refactor my project Selenidium Element Inspector😊: [github.com/mszeles/selenideium-element-inspector](https://github.com/mszeles/selenideium-element-inspector)

[Dhairya Shah](https://hashnode.com/@codewithsnowbit)

[Mar 6, 2022](https://hashnode.com/posts/its-2022-dont-use-the-consolelog/622361ede814324bc83a8472/comment/6223c022e814324bc83a92cc#reply-622430f3e814324bc83a9b4e)

You're welcome [Miki Szeles](https://hashnode.com/@mszeles)

[Miki Szeles](https://hashnode.com/@mszeles)

[Mar 6, 2022](https://hashnode.com/posts/its-2022-dont-use-the-consolelog/622361ede814324bc83a8472/comment/6223c022e814324bc83a92cc#reply-62245252b9cb874b840cad18)

The pleasure is miné. 😊[SnowBit](https://hashnode.com/@codewithsnowbit)
