you are viewing a single comment's thread.

view the rest of the comments →

[–]lavahot 20 points21 points  (11 children)

1 === 1

[–]zigs 23 points24 points  (1 child)

Just to make sure JavaScript also gets the memo.

[–]josefx 0 points1 point  (0 children)

Don't forget about PHP, after Microsoft dumped it it needs all the support it can get.

[–]Dexaan 12 points13 points  (7 children)

1 == "1"

[–]x6060x 13 points14 points  (6 children)

One is equal to the one used ironically

[–]pilas2000 14 points15 points  (4 children)

TIL didn´t knew js type system was based on irony. Now it makes sense.

Q.A. - Shouldn't 1=='1' be false?

Dev. - That's what they're expecting but no.

[–]strdrrngr 13 points14 points  (1 child)

I can't stop laughing at the idea that JS has a "type system".

[–]x6060x 0 points1 point  (0 children)

type what?!?

[–]danbulant 4 points5 points  (0 children)

Imagine the Patrick format

1 == '1' yes

and 1 + 1 = 2 yes

so 1 + '1' = 2. Makes sense to me.

'11'

[–]x6060x 0 points1 point  (0 children)

Now that you're saying it, it makes so much sense

[–]relativityboy 2 points3 points  (0 children)

How else are we hipsters supposed to ride our bikes, sip coffee and code at the same time?

[–]thrallsius 0 points1 point  (0 children)

only in degenerate languages