---
title: "Comment by Amit yadav on \"It's 2022, don't use the console.log(😎)\" | Hashnode"
description: "I use this one. const debugApp = false ; const debugMsg = ( msg ) = &gt; debugApp &amp; &amp; console.log( msg )"
url: "https://hashnode.com/posts/its-2022-dont-use-the-consolelog/622361ede814324bc83a8472/comment/6224ff82d858116153ef13d6"
---

[Discussion](https://hashnode.com/posts/its-2022-dont-use-the-consolelog/622361ede814324bc83a8472)

Comment [It's 2022, don't use the console.log(😎)](https://hashnode.com/posts/its-2022-dont-use-the-consolelog/622361ede814324bc83a8472)

[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)
```
