Objectives
- Create comments in JavaScript source code
- Explain the importance of using indentation in coding
- Explain how to use strict mode in JavaScript
- Discuss JavaScript objects, properties, methods, and events
There are two types of JavaScript comments. Single line comments start with a double slash (//) and everything after that on the line is treated as a comment. Single line comments automatically end at the end of the line. Multiline comments start with a slash star (/*) and end with a star slash (*/). Multiline comments may start and end on the same line or span several lines. Multiline comments can NOT be nested.
See W3schools.com JavaScript comments article