Difference between == and === operator

Both == and === are Compraison operators.

== check for equality of values

=== check equality as well as type of the operands means they should be equal and of same type.

For ex. 1==true means result is ture (both are equal)

but 1===true means result is false (both are equal but not same type)