---
title: "Discussion on \"Comments' Usage and Best Practices in JavaScript\" | Hashnode"
description: "Discussion on \"Comments' Usage and Best Practices in JavaScript\". 💬 Comments \n\nIn computer programming, a comment is a programmer-readable explanation or annotation in the source code of a computer program.\n\nIn this article, we will learn some of known ways of writing comments, their usages, best practices and mor..."
url: "https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Comments' Usage and Best Practices in JavaScript](https://shhdharmen.hashnode.dev/comments-usage-and-best-practices-in-javascript?utm_source=hashnode&utm_medium=feed)

💬 Comments In computer programming, a comment is a programmer-readable explanation or annotation in the source code of a computer program. In this article, we will learn some of known ways of writing comments, their usages, best practices and mor...

Sep 11, 2020 · 15 min read · shhdharmen.hashnode.dev  
Updated Sep 19, 2020  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#best-practices](https://hashnode.com/tag/best-practices)
-   [#developer](https://hashnode.com/tag/developer)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[Dharmen Shah](https://hashnode.com/@shhdharmen)

@shhdharmen · Ahmedabad, GJ, IN

  
[View profile](https://hashnode.com/@shhdharmen)

Sr. Full-Stack Developer

I am a 👔👨🏻‍💻 Front-end Developer. I like to work on 💻 Web stuff (HTML, CSS, JS), 🅰️ Angular, ⚛️ React, 🖌️ Bootstrap. I also love 🤗 to contribute to 👐 Open-Source Projects and sometime ✒️ write 📜 articles.

## Responses 16

Markdown supported · ⌘↵ to post

[sandra parker](https://hashnode.com/@assignmenthelperr)

[Jan 4, 2023](https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042/comment/63b528c59d98df792a5b67c6)

[Ways to Overcome the Fear of Reading Textbooks to Write Your Essay](https://www.postingera.com/persuasive-words-and-phrases-to-improve-essay-writing-skills)

[jordanlaris](https://hashnode.com/@jordanlaris)

[Nov 17, 2022](https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042/comment/6375e8c9ca227470058fe5c4)

Great guide to being able to write a good and meaningful comment [death run 3d](https://deathrun3d.com/)

[liyasha liyasha](https://hashnode.com/@liyasha111)

[Jul 18, 2022](https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042/comment/62d5148a2f40e31decd8f5d0)

Best Escape Room for Adults , you can check northtexasescaperooms.com

[liyasha liyasha](https://hashnode.com/@liyasha111)

[Jul 18, 2022](https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042/comment/62d50ab42f40e31decd8f23e)

Best Escape Room for Adults , you can check northtexasescaperooms.com

[Drago Baker](https://hashnode.com/@drago007)

[Mar 10, 2022](https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042/comment/6229840c019447953617e36e)

As I studied All characters immediately following the // syntax until the end of the line will be ignored by JavaScript. Block comments, sometimes referred to as multi-line comments, are written with opening tags ( / _) and closing tags (_ / ). if anybody has good knowledge and wants to share more about this topic anyone can [write for us hosting](https://www.dollaronewebhosting.com/write-for-us) and our team will publish it as a blog if your article is found valuable for visitors.

[John Harris](https://hashnode.com/@johnnharris)

[Mar 4, 2022](https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042/comment/622209a75998063ea60d80d5)

John Harris writes blogs, video scripts and print publications for Allessaywriter.com, and in his leisure time, he writes a guest blog for content marketing, digital marketing, etc. Read more: [all essay writer](https://allessaywriter.com/)

[Ava Anderson](https://hashnode.com/@avaanderson)

[Dec 24, 2021](https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042/comment/61c567660e66663d56fccb30)

Students of Computer Science are mostly programmer they grip on codes but they don't focus on comments that why they can't explain their projects or write their assignments they visit [assignment writing services](https://www.researchprospect.com/writing-services/assignment-writing-service-in-uk/) to write assignment.

[Rhonda Abbott](https://hashnode.com/@RhondaAbbott)

[Feb 8, 2022](https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042/comment/61c567660e66663d56fccb30#reply-620239e7adb7e27dcad395ed)

<a href="[hcs.harvard.edu/">here</a>](https://www.hcs.harvard.edu/%22%3Ehere%3C/a%3E) \[url=[hcs.harvard.edu](https://www.hcs.harvard.edu/)\]here\[/url\] [hcs.harvard.edu](https://www.hcs.harvard.edu/) [here](https://www.hcs.harvard.edu/)

[Matthew Kelley](https://hashnode.com/@matthewkelley)

[Nov 19, 2021](https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042/comment/6197407f0b25eb28701f706f)

My friend had lack of knowledge about writing comments while coding. He just concentrate on writing codes, but they don't know how to explain the codes in an understandable manner for their fellow programmers. Then one day he found a site where [report writers help](https://www.researchprospect.com/writing-services/report-writing-service-in-uk/) the student to write reports they help hi and he explain his good perfectly.

[Aric Joshua](https://hashnode.com/@aricjoshua)

[Nov 19, 2021](https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042/comment/619717040b25eb28701f6dd6)

When working in a team, knowing how to properly comment and describe your code is a must-have ability. This [cookie clicker](https://cookieclicker2.io/) experience is a random suggestion.

[Alex John](https://hashnode.com/@alexjohn32)

[Nov 4, 2021](https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042/comment/6183c45b2806f44d7bc152aa)

The professional [College Assignment Writing Service](https://www.ukassignmenthelp.uk/college-assignment-writing-help-service) also help technical students to re-write their concept in explanation mode

[Samuel Darden](https://hashnode.com/@samuelddarden)

[Oct 6, 2021](https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042/comment/615d3793e16040649ad7e368)

Hello my friend, I can’t wait to try this step you share to see if they are true. And while I am doing that, maybe you download now to play these two [free](https://www.emulatorpc.com/plants-vs-zombies-free/) games that I want you to play. The game names are [play together](https://games.lol/play-together/) and Plants vs Zombies Free. The two games are really super fun games. Worth it to play with your family and friends. Want them? Just click the link that I add here in my comment.

[Jessica Vanessa](https://hashnode.com/@JessicaVanessa)

[Sep 1, 2021](https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042/comment/612f51cbc21ac123ca376e24)

These practices are very good and people can learn a lot from here. You are doing a great job by sharing your ideas with us here. When I read from the [law essay writing services](https://www.brillassignment.co.uk/law-assignment-writing-uk-services/) I found link to this site and it have the best information.

[Lazar Nikolov](https://hashnode.com/@nikolovlazar)

[Sep 12, 2020](https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042/comment/5f5ce090ddc3fe5f4f24d245)

Super insightful! Knowing how to properly comment and document your code is a must-have skill when working in a team.

[Dharmen Shah](https://hashnode.com/@shhdharmen)

[Sep 12, 2020](https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042/comment/5f5ce090ddc3fe5f4f24d245#reply-5f5cfb77ddc3fe5f4f24d3a2)

That's very right. Comments are the most important part, they make the knowledge transfer much smoother between team mates.

[Victoria Lo](https://hashnode.com/@victoria)

[Sep 12, 2020](https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042/comment/5f5ce08eddc3fe5f4f24d23e)

Wow this is an insightful article! I realized that I'm definitely not commenting in best practices after reading this. Oops..

[Dharmen Shah](https://hashnode.com/@shhdharmen)

[Sep 12, 2020](https://hashnode.com/posts/comments-usage-and-best-practices-in-javascript/5f5ba54b520ddb588fb4d042/comment/5f5ce08eddc3fe5f4f24d23e#reply-5f5cfbd513599a5f2e33f6fc)

Yeah... But I am sure you will.
