In this article, we will learn some of the known ways of writing comments, their usages, best practices, and more.

Although all of the examples in this article are in JavaScript and it will be according to jsdoc (https://jsdoc.app/) format, the overall idea remains the same for any programming language.

🛎️ Importance

We all know that reading and understanding programs is much more difficult than writing them. And that’s why comments are always very useful when it comes to understanding another developer’s code.

And believe me, it’s not just only for other developers, it’s for future yourself, too. After looking at our own code after a couple of months, even we sometimes are not sure why we wrote that piece at the first place.

#javascript #jsdoc #best-practices #web-development #comment

Comments’ Usage and Best Practices in JavaScript
1.95 GEEK