Type of operator
ये unary और binary दो तरह के होते है
i. unary operator वो operators होते है जो सिर्फ एक ही variable पर ही apply होते है जैसे की (~) NOT operator है ये operator सिर्फ एक ही variable के साथ apply किया जाता है
ii. binary operator वो operators होता है जिनके execution के लिए 2 operators को required होते है जैसे की (+) operator होता है इस operator को आप किसी single variable के साथ प्रयोग नहीं कर सकते है इस variable को एक्सीक्यूट होने के लिए 2 operands की आवश्यकता होती है
जावास्क्रिप्ट में निम्नलिखित प्रकार के ऑपरेटर हैं।
-
Arithmetic operators
-
Relational operators/comparison Operator
-
Logical operators
-
Assignment operators
-
Increment and decrement operators
-
Conditional operators
-
Bitwise Operators
-
Special operators
Type of operator
These are of two types of operator- unary and binary.
i. Unary operators are those operators which are applied only on one variable, such as (~) is NOT operator, this operator is applied only with one variable.
ii. Binary operators are those operators for which 2 operators are required for execution, such as (+) operator. You cannot use this operator with a single variable. This variable requires 2 operands to be executed. is required
There are following types of operators in JavaScript.
-
Arithmetic operators
-
Relational operators/comparison Operator
-
Logical operators
-
Assignment operators
-
Increment and decrement operators
-
Conditional operators
-
Bitwise Operators
-
Special operators