Operators
+ Plus Operator
On the following example it is used as mathematical plus operator and result is 3
Using double plus means increasing the actual number 1 and result is 3
Using plus string variables will append the next into previous one and result is "Hello World"
On the flllowing examples as one of them is string, it uses string plus operation and result is "123 is the lucky number"
On the flllowing examples as one of them is string, it uses string plus operation and result is "23"
On the flllowing example plus before the string converts it into number and result is 5
On the flllowing example plus before the string converts it into number but as the string is not a number, it returns as NaN
- 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