Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Single-line Comment
course content

Course Content

Introduction to JavaScript

Challenge: Single-line CommentChallenge: Single-line Comment

Let's work on improving our commenting skills by practicing with some code.


Comment the second and the fifth lines of code.

1. 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?

Section 1. Chapter 5