What is == and === in JavaScript?

= is used for assigning values to a variable in JavaScript. == is used for comparison between two variables irrespective of the datatype of variable. === is used for comparision between two variables but this will check strict type, which means it will check datatype and compare two values.

Sizin İçin Seçtik  How do you check the two Character is equal or not?

Leave a Reply

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

What is != and !== In Javascript?

!== operator ==) is the logical opposite of the strict equality operator . It means “Strictly Not Equal” and returns true where strict equality would return false and vice versa. Strict inequality will not convert data types. For example 1 !==

Sizin İçin Seçtik  How do you capitalize the first letter in Kotlin?

Leave a Reply

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