Course Content
Introduction to JavaScript
Introduction to JavaScript
Challenge: Single-line Comment
Let's work on improving our commenting skills by practicing with some code.
Task
Comment the second and the fifth lines of code.
console.log("line 1"); ___ console.log("line 2"); console.log("line 3"); console.log("line 4"); ___ console.log("line 5");
Use the single-line comment (//
).
console.log("line 1"); // console.log("line 2"); console.log("line 3"); console.log("line 4"); // console.log("line 5");
Everything was clear?