30 Days Of JavaScript

Day 1: Simple Types

Lesson 7: Comments

Sometimes we want to leave notes in our code that we want JavaScript to ignore.

We can do that with two forward slashes //.

1// This is comment and will be ignored

This is a comment and the // tells JavaScript to ignore everything after it.

You can do multiline comments with /* to start and */ to end the comment

2This is a comment
3on two lines

and you can add the // type after a line of code, so like this:

1let myAge = "35"; // this is the users age


Go Pro?

Upgrade to Pro for quizzes, tracked progress and a completion certificate for just $25 🚀

Want more developer tips, tricks and tools?
Then follow me:
FREE Coding Career Quick Start Guide 🚀
Discover the best way to learn to code, how to land a job and valuable resources to help your journey in this free 15 page value packed guide.
Looking to email me? You can get me on my first name at allthecode.co