Gnoseed
Programming · Flashcard

What is the difference between == and ===?

Why this is the answer

=== checks value and type with no coercion, while == coerces types first (0 == "0" is true, 0 === "0" is false). It's not reversed, neither compares memory addresses, === isn't limited to numbers, and the two aren't interchangeable.

Read more in the docs
Study in Gnoseed →