Javascript

Strict Equality (==) Loose Equality (===) in JavaScript

JavaScript has two operators for checking equality. One is == (equality operator or loose equality operator) and the other one is === (strict equality operator). Both of these operators check the value of operands for equality. But, the difference between == & === is that the == does a type conversion before checking for equality. Similarly, we have two, not equal operators != and !==

Strict Equality (==) Loose Equality (===) in JavaScript Read More »

Arithmetic Operators in JavaScript

The JavaScript arithmetic operators take numerical values as their left & right operands, perform the arithmetic operation, and return a numerical value. The JavaScript supports all the arithmetic operators like addition (+), subtraction (-), multiplication (*), division (/), etc. Note that all the numbers in JavaScript are represented as IEEE 754 floating-point numbers and use floating-point arithmetic.

Arithmetic Operators in JavaScript Read More »

Scroll to Top