Зміст курсу
Introduction to JavaScript (staging)
Introduction to JavaScript (staging)
Commenting 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.
/* class WebDeveloper{ constructor(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; } } let me = new WebDeveloper('Robin', 'Wieruch'); console.log(me); */
Завдання
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
Дякуємо за ваш відгук!
Commenting 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.
/* class WebDeveloper{ constructor(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; } } let me = new WebDeveloper('Robin', 'Wieruch'); console.log(me); */
Завдання
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
Дякуємо за ваш відгук!
Commenting 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.
/* class WebDeveloper{ constructor(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; } } let me = new WebDeveloper('Robin', 'Wieruch'); console.log(me); */
Завдання
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
Дякуємо за ваш відгук!
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.
/* class WebDeveloper{ constructor(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; } } let me = new WebDeveloper('Robin', 'Wieruch'); console.log(me); */
Завдання
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