you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 2 years ago (1 child)

The other comments explains it in pretty good detail, but when I was learning my teacher explained it sort of like a mnemonic.

1 + 1 = 2 is read "one plus one equals two"

1 + 1 == 2 is read "one plus one is equal to two"

1 + 1 === 2 is read "one plus one is really equal to two"

And you hit the nail on the head, is that === is type explicit while == is implicit.

  • source
  • parent
  • hideshow 2 child comments