Different types of operators?
Plus +
Minus -
Increment ++
Decrement --
Multiply *
Exponentiation **
Division /
Modulas %
And &&
OR ||
Assignment =
Equal to ==
Not !
strict equality operator ===
+= x += y x = x + y
-= x -= y x = x - y
= x *= y x = x * y
/= x /= y x = x / y
%= x %= y x = x % y
*= x *= y x = x * y
== equal to x == 5
=== equal value and equal type x === 5
!= not equal x != 5
!== not equal value or not equal type x !== 5
greater than x > 5
< less than x < 5
= greater than or equal to x >= 5
<= less than or equal to x <= 5
Types of loops in js?
While
Do while
For
Syntax :
While(condition)
{
(Increment, decrement)
}
do
{
(Increment, decrement)
} While (condition)
For(let i=0,i<5,i++){
}
Top comments (0)