Using comments helps to understand code and its purpose. In JavaScript, there are two syntaxes dedicated to comments. Best Practices For Using Comments In JavaScript How to Use Comments Efficiently in JavaScript Nipuni Arunodi Follow Sep 14 · 6 min read using comments in JavaScript.

2m read timeFrom blog.bitsrc.io
Post cover image
Table of contents
1. Code tells `how` and comments tells `why`2. Only use the necessary level of details3. Avoid Abbreviations4. Use comments before code5. Pay extra attention to numeric values6. Take editor Support