# Comment

*noun*

say it: **“KOM-ent”** **/ˈkɒmɛnt/**

A note in your code for people to read, which JavaScript skips. A one-line note starts with //, and a longer one sits between /\* and \*/.

## What is **Comment** in JavaScript?

**Comment** — Text written for people reading the code that the JavaScript engine ignores.

```javascript
// Keep the original price for the receipt.
const price = 12;
```

## In a sentence

- “I left a **comment** above the discount line, // members get 10% off, so I'll remember why the math is there.”

Level: Novice · [More JavaScript terms at this level](https://www.ask-codey.com/glossary?category=javascript&level=1)

Updated: November 9, 2026

## In other subjects

- [Comment in C#](https://www.ask-codey.com/glossary/comment-c-sharp)
- [Comment in CSS](https://www.ask-codey.com/glossary/comment-software-development)
- [Comment in Java](https://www.ask-codey.com/glossary/comment-java)
- [Comment in PowerShell](https://www.ask-codey.com/glossary/comment-powershell)
- [Comment in Python](https://www.ask-codey.com/glossary/comment)
- [Comment in Unix](https://www.ask-codey.com/glossary/comment-unix)

Source: https://www.ask-codey.com/glossary/comment-javascript
