JavaScript Tutorial #8 – Operators in JavaScript

JavaScript supports different types of operators that includes

Assignment Operator

JavaScript supports different types if Assignment Operators like
=
+=
-=
*=
/=
%=

Arithmetic Operator

+ – Add Operator
– – Subtract Operator
* – Multiplication
/ – Division
% – Modulus
++ – Increment
— – Decrement

Logical Operator

The below Logical operators are supported in JavaScript
&& – Logical AND
|| – Logical OR
! – Logical NOT

Comparison Operator

The below comparison operators are supported in JavaScript.

==
!=
>
<
>=
<=

Conditional Operator

? :

typeof Operator

Bitwise Operators:

&
|
^
~
<<
>>
>>>

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

Assume that you have an angle in degree and you wish to convert it to radians in JavaScript so that...
The JavaScript elements and statements are placed within the script tag within the HTML page. You can specify the language...
JavaScript has the support for both single line and multi line comments like C++ or C#. The single line comment...