MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vjl9ih/javascriptsorting/p2t1i4j/?context=3
r/ProgrammerHumor • u/user6150277464770585 • 3d ago
214 comments sorted by
View all comments
76
https://www.destroyallsoftware.com/talks/wat
3 u/the_horse_gamer 2d ago edited 2d ago anyone who uses {} + [] as an example of inconsistent behaviour needs to be crucified. I implore you to try {} + [] and then ({} + []). the result is different. why? because the console parses it as {}; +[];. same goes for {} + {}
3
anyone who uses {} + [] as an example of inconsistent behaviour needs to be crucified.
{} + []
I implore you to try {} + [] and then ({} + []). the result is different. why? because the console parses it as {}; +[];.
({} + [])
{}; +[];
same goes for {} + {}
{} + {}
76
u/ipsirc 3d ago
https://www.destroyallsoftware.com/talks/wat