September 2024
Beginner to intermediate
985 pages
35h 37m
English
Although purists claim that good source code is self-explanatory, you should especially comment more complex program sequences or source code that you know someone else will use as well. A comment is simply text that you can include in your code that human readers of your code (e.g., other developers in your team) can read to better understand the code, but that doesn’t have any effect on the program itself. You have two options for this: single-line comments and multiline comments.
You always start a single-line comment with two consecutive slashes (//). As soon as the JavaScript interpreter finds this character combination in the source code, everything on the same line is considered a comment. You start a ...
Read now
Unlock full access