Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Comments | Getting Started
Introduction to JavaScript
course content

Course Content

Introduction to JavaScript

Introduction to JavaScript

1. Getting Started
2. Manipulating Data
3. Conditional Statements

book
Comments

Summary

  • Comments: A way to include useful notes or explanations in the code, or to temporarily ignore a piece of code.
  • Single-line Comment: Used to add a comment that only takes up one line.
  • The syntax of a single-line comment is:
javascript

1. What symbol is used to create a single-line comment in JavaScript?

2. Which of the following is a correct example of a single-line comment?

question mark

What symbol is used to create a single-line comment in JavaScript?

Select the correct answer

question mark

Which of the following is a correct example of a single-line comment?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 10
We're sorry to hear that something went wrong. What happened?
some-alt