Course Content
Introduction to JavaScript
Introduction to JavaScript
1. Getting Started
Hello WorldTask - Show some OutputTask - Output Multiple LinesNumbersTask - Working with NumbersTask - Calculate the Speed of a CarTask - Calculate Area of a TrapeziumOutputting Multiple ValuesTask - Meaningful OutputCommentsTask - Adding a commentMulti-Line CommentsTask - Commenting out CodeTask - Coffee Shop SalesWhat is JavaScript anyway?
2. Manipulating Data
Storing DataTask - Declaring a VariableTask - Accessing Data From a VariableTask - Fixing Variable NamesTask - Reassigning a VariableConstantsTask - Declaring & Using ConstantsPerforming Arithmetic On VariablesTask - Making a Salary CalculatorTask - Adjusting Salary with a BonusTypes of DataTask - Declare a Boolean ValueHow different Data Types InteractTask - Concatenating StringsTask - User Profile & Activity Details
3. Conditional Statements
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?
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 10