Alternative for console.log()

Devendran
2 min readMar 20, 2022

Hi Everyone,

As a web developer, everyone got interested in seeing the topic.

Same like that I to got interest on seeing the topic. One day back I have just gone through some blogs. At that time I just saw this topic It’s 2022 Don’t use console.log() After seeing the topic immediately I opened it and I got shocked.

He just returns console.log() as a function.

You can name it anything like console, hmmm, etc… whatever you like you can name it like that.

In that article, he said that if we write console.log() as function it will increase the code readability and it will decrease the code.

In my point of you, this is not required. Because if we console.log() as function with passing one argument. Sometimes we need to pass two arguments means we should one more argument to the function. So I recommended writing console.log() as the console.log(). Not as function like said in this article ( ARTICLE LINK )

--

--