Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed (UPI) Chapter 2: Integration of JavaScript with HTML!

Instruction

JavaScript Comments

Comments in JavaScript are the same as comments in C-derivative languages. There are two types of comments:

1. Line Comment: A line comment is signified by //, and all of the subsequent text on that line is a comment. An example of declaring a variable and commenting is illustrated below:

let loopCount; // Counter for string processing loop

2. Block Comment: ...