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:

&
|
^
~
<<
>>
>>>

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Reply


x

Interesting BlogPosts to read

How to Flatten a 2-D array in JavaScript ?
You can flatten a 2-D array in JavaScript using the concat and apply method as shown in the below co...
How to convert from Degree to Radian in JavaScript ?
Assume that you have an angle in degree and you wish to convert it to radians in JavaScript so that ...
The Rise of the Full Stack JavaScript Developer by @dortzur
JavaScript is everywhere.In the old days, being a JavaScript developer meant that you were a fro...