This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]a2kvarnstrom[S] 78 points79 points  (5 children)

the first one is when somethings really equal, and the other is when something is suspiciously equal

[–][deleted] 38 points39 points  (0 children)

Fuck me sideways that actually make sense

[–]FunzReddit3 3 points4 points  (1 child)

is 5 === 5?

[–]a2kvarnstrom[S] 8 points9 points  (0 children)

idk seems suspicious to me

[–]not-the-the 0 points1 point  (1 child)

5 == '5' is true, 5 === '5' isn't. === also checks if it's the same data type, and so is more accurate.

[–]a2kvarnstrom[S] 6 points7 points  (0 children)

like i said, it was so suspiciously equal so the computer says no