Comments
Comments are notes in your code that JavaScript ignores. They help explain what your code does and make it easier to understand.
Single-Line Comments
Use // for single-line comments:
Loading JavaScript Playground...
Multi-Line Comments
Use /* */ for multi-line comments:
Loading JavaScript Playground...
Why Use Comments?
Comments serve several purposes:
Loading JavaScript Playground...
Exercise: Add Comments
Add a comment explaining what each line does:
Loading JavaScript Exercise...
Exercise: Disable Code
Use comments to prevent the middle line from running:
Loading JavaScript Exercise...

