Today Second day class in JavaScript. I shared the topics, What I learn Today.
Operators:
In programming and logic, an operator is a symbol or keyword that performs an action on one or more values (called operands).
Types of Operators
:
.Arithmetic Operators
.Assignment Operators
.Comparison Operators
.Logical Operators
.String Operators
.Type Operators
.Ternary Operator (Conditional)
.Nullish Coalescing
.Optional Chaining
ParseInt()
= method
String change into integer.
(NAN)
= not a number
Arithmetic Operators:
`+` Addition
`-` Subtraction
`*` Multiplication
`/` Division
`%` Modulus (remainder)
`**` Exponentiation
`++` Increment
`--` Decrement
Assignment Operators:
`=`
`+=`
`-=`
`*=`
`/=`
`%=`
`**=`
Comparison Operators:
`==` Equal to (loose equality)
`===` Equal value and type (strict equality)
`!=` Not equal to
`!==` Not equal value or type
`>` Greater than
`<` Less than
`>=` Greater than or equal
`<=` Less than or equal
Logical Operators:
&& Logical AND
! Logical NOT
String Operators:
+ Concatenation
+= Append and assign