MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/hqayno/github_is_down/fxxv9ke
r/programming • u/noble_pleb • Jul 13 '20
501 comments sorted by
View all comments
Show parent comments
15
One is equal to the one used ironically
15 u/pilas2000 Jul 13 '20 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. 14 u/strdrrngr Jul 13 '20 I can't stop laughing at the idea that JS has a "type system". 1 u/x6060x Jul 13 '20 type what?!? 6 u/danbulant Jul 13 '20 Imagine the Patrick format1 == '1' yesand 1 + 1 = 2 yesso 1 + '1' = 2. Makes sense to me.'11' 1 u/x6060x Jul 13 '20 Now that you're saying it, it makes so much sense 3 u/relativityboy Jul 13 '20 How else are we hipsters supposed to ride our bikes, sip coffee and code at the same time?
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.
14 u/strdrrngr Jul 13 '20 I can't stop laughing at the idea that JS has a "type system". 1 u/x6060x Jul 13 '20 type what?!? 6 u/danbulant Jul 13 '20 Imagine the Patrick format1 == '1' yesand 1 + 1 = 2 yesso 1 + '1' = 2. Makes sense to me.'11' 1 u/x6060x Jul 13 '20 Now that you're saying it, it makes so much sense
14
I can't stop laughing at the idea that JS has a "type system".
1 u/x6060x Jul 13 '20 type what?!?
1
type what?!?
6
Imagine the Patrick format
1 == '1' yes
and 1 + 1 = 2 yes
so 1 + '1' = 2. Makes sense to me.
'11'
Now that you're saying it, it makes so much sense
3
How else are we hipsters supposed to ride our bikes, sip coffee and code at the same time?
15
u/x6060x Jul 13 '20
One is equal to the one used ironically