2018-10-12 15:37:13 -04:00
---
title: Comment Your JavaScript Code
---
2019-07-24 00:59:27 -07:00
# Comment Your JavaScript Code
2018-10-12 15:37:13 -04:00
2019-07-24 00:59:27 -07:00
---
## Hints
2018-10-12 15:37:13 -04:00
2019-07-24 00:59:27 -07:00
### Hint 1
Commenting allows you to type stuff that you don't want the computer to run as code. For example, notes to other programmers, directions, and more. Here's how to create a single-line comment.
```js
// Hey, I'm a comment!
```
2018-10-12 15:37:13 -04:00
Now, if you want to comment an entire paragraph, that can be easily accomplished with...
2019-07-24 00:59:27 -07:00
```js
/*
2018-10-12 15:37:13 -04:00
Hey, I'm a paragraph comment.
This allows for programmers to
write tons and tons of random
words, without the fear of me
being compiled!
*/
2019-07-24 00:59:27 -07:00
```