As the question appears, What is an Operator?
Logical (or Relational) Operators
Conditional (or ternary) Operators
Lets have a look on all operators one by one.
var x = 5; // assign the value 5 to x
var y = 2; // assign the value 2 to y
var z = x + y; // assign the value 7 to z (5 + 2)
Arithmetic operator are basically used to perform arithmetic operations on numbers.
|%||Modulus (Division Remainder)|
|=||x = y||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|
|**=||x **= y||x = x ** y|
|===||equal value and equal type|
|!==||not equal value or not equal type|
|>=||greater than or equal to|
|<=||less than or equal to|
If you have any query, if you want to know something about any of technical course related to computer science field, if you have any suggestion about relevant to uploaded content or if you anything wrong here (any mistake in content) than please contact us. Keep in mind, comment should be according to community guidelines.