Subscriber only lesson.
Sign up to this course to view this lesson.
Statements and Comments
Every line of code is a statement. Comments are important for code clarity.
When to use
You should always get in the habit of commenting your code. Always!
The most basic way to create a comment is with two forward slashes //
Anything after the // is a comment, within that line.
You can also have multiple-lined comments.
This is a comment
It's on more than one line
Hints & tips
- Comments are important!
- Single line comments start with //
- Multiple line comments look like this /* comment */
Lesson notes are only available for subscribers.