Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Commenting in JavaScript. Multi-line Comments | JavaScript syntax
Introduction to JavaScript (staging)
course content

Conteúdo do Curso

Introduction to JavaScript (staging)

Introduction to JavaScript (staging)

1. Introduction
2. JavaScript syntax
3. Data Types and Variables

bookCommenting in JavaScript. Multi-line Comments

Multi-line Comments
Multiline comments have a purpose same as single-line comments.
Multiline comments start with two symbols: /*. To end the comment, we use these symbols */ again. Everything in these symbols will be commented out.

123456789
/* class WebDeveloper{ constructor(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; } } let me = new WebDeveloper('Robin', 'Wieruch'); console.log(me); */
copy

Tarefa

In the following code, we only need the fullName variable. Your task is to comment out all the variables except the fullName variable using multi-line comment.

Summary:

  • Comments are used to illustrate the code and make the program more clear for developers.
  • Commented part is not implemented by the browser.
  • We can comment just a line of code.
  • We can comment entire block of code

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 15
toggle bottom row

bookCommenting in JavaScript. Multi-line Comments

Multi-line Comments
Multiline comments have a purpose same as single-line comments.
Multiline comments start with two symbols: /*. To end the comment, we use these symbols */ again. Everything in these symbols will be commented out.

123456789
/* class WebDeveloper{ constructor(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; } } let me = new WebDeveloper('Robin', 'Wieruch'); console.log(me); */
copy

Tarefa

In the following code, we only need the fullName variable. Your task is to comment out all the variables except the fullName variable using multi-line comment.

Summary:

  • Comments are used to illustrate the code and make the program more clear for developers.
  • Commented part is not implemented by the browser.
  • We can comment just a line of code.
  • We can comment entire block of code

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 15
toggle bottom row

bookCommenting in JavaScript. Multi-line Comments

Multi-line Comments
Multiline comments have a purpose same as single-line comments.
Multiline comments start with two symbols: /*. To end the comment, we use these symbols */ again. Everything in these symbols will be commented out.

123456789
/* class WebDeveloper{ constructor(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; } } let me = new WebDeveloper('Robin', 'Wieruch'); console.log(me); */
copy

Tarefa

In the following code, we only need the fullName variable. Your task is to comment out all the variables except the fullName variable using multi-line comment.

Summary:

  • Comments are used to illustrate the code and make the program more clear for developers.
  • Commented part is not implemented by the browser.
  • We can comment just a line of code.
  • We can comment entire block of code

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Multi-line Comments
Multiline comments have a purpose same as single-line comments.
Multiline comments start with two symbols: /*. To end the comment, we use these symbols */ again. Everything in these symbols will be commented out.

123456789
/* class WebDeveloper{ constructor(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; } } let me = new WebDeveloper('Robin', 'Wieruch'); console.log(me); */
copy

Tarefa

In the following code, we only need the fullName variable. Your task is to comment out all the variables except the fullName variable using multi-line comment.

Summary:

  • Comments are used to illustrate the code and make the program more clear for developers.
  • Commented part is not implemented by the browser.
  • We can comment just a line of code.
  • We can comment entire block of code

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Seção 2. Capítulo 15
Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
some-alt