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
セクション 2.  15
single

single

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
タスク

スワイプしてコーディングを開始

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 desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 2.  15
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt