Alternative for console.log()

Devendran
1 min readMar 20, 2022

--

Hi Everyone,

As a web developer, everyone is interested in the topic.

“I recently came across some blogs, and one of them caught my attention with the title ‘It’s 2022, Don’t Use console.log()’. As soon as I saw the topic, I immediately opened it, and I was shocked by what I read.”

This version improves grammar, structure, and readability.

“You can name it anything, like console, hmmm, or whatever you prefer. In that article, the author mentioned that writing console.log() as a function improves code readability and reduces the amount of code.

However, in my opinion, this is unnecessary. If we define console.log() as a custom function that takes one argument, it could become inconvenient when we need to log two or more arguments, as we would then need to modify the function to accommodate additional arguments. Therefore, I recommend using console.log() it directly instead of wrapping it in a custom function."

--

--

Responses (1)