#3) Difference between "==" and "===" operators❔

myk

Mayank Yadav

Posted on July 25, 2021

#3) Difference between "==" and "===" operators❔

==(Equality)

✔Used for comparing two variables and ignoring the data type of variable.

✔Returns true only if the two operands are equal and false for not equal.

===(Strict Equality)

✔Used for comparing two variables but also checks the data type and compares the two values.

✔Returns true only if both the values and data types are same.


image


        🚀Both("==" and "===") are comparison operators.
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
myk
Mayank Yadav

Posted on July 25, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related