Javascript - Equality

About

Language - Equality

Operators

Loss

Loss Equality

a == b

A loss equality will not check the type of the value and will perform a coercion before checking the equality.

Strict

a === b

A strict equality will also check the type of the value.





Discover More
How to check the equality of 2 values in Javascript? (If they are the same)

This page discusses Equality between 2 Javascript values. Because every value in javascript is an object, it applies also to the object. Object.is verifies the value. in case of the primitive,...
Javascript - Array

array in Javascript can contain any type of data. Different types of values can be stored within the same array Because arrays are special objects (as typeof implies), they can also have properties, including...
Javascript - Coercion

in Javascript Policy: Make the conversions explicit and use the strict equality operator. Operators such as if, ||, and && accept any values thanks to the Truthiness/Falsiness coercion. See...
Javascript - Comparison (Equal, Order,..) =

This page is comparison operator in Javascript. The “invalid number value” NaN is neither greater than nor less than any other value.
Javascript - Special Characters

Characters that can act as: Expression operator (ie an operator) The beginning of a statement ( [ + Concat or addition - Minus / Division Regular expression Example: / as a regular...



Share this page:
Follow us:
Task Runner