Comment Your JavaScript Code
Comments are lines of code that JavaScript engine ignores. Those will not be executed it is only for explanation of the following code's logic.
There are two styles of writing comments
1. Single line of comment
Using // will tell JavaScript Engine to ignore the current line.
2. Multiple lines of comment
You can place multiple lines of your code within /* and */
- Comment Your JavaScript Code
- Declare Variables
- Data Types
- Type Conversions
- + Plus Operator
- - Minus Operator
- * Multiply Operator
- * Multiply Operator (1)
- % Modulus (Division Remainder) Operator
- ** Exponentiation Operator
- Bitwise operators
- Comparisons
- Logical Operators
- Interaction: alert, prompt, confirm, console.log
- The "switch" statement
- Loops: while, do while and for