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

Contenido del Curso

Introduction to JavaScript

Introduction to JavaScript

1. Basic Concepts
2. Variables and Data Types
3. Basic Operations
4. Conditional Statements
5. Loops
6. Functions

bookChallenge: 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.

12345
console.log("line 1"); ___ console.log("line 2"); console.log("line 3"); console.log("line 4"); ___ console.log("line 5");
copy

Use the single-line comment (//).

12345
console.log("line 1"); // console.log("line 2"); console.log("line 3"); console.log("line 4"); // console.log("line 5");
copy

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 5
We're sorry to hear that something went wrong. What happened?
some-alt