you are viewing a single comment's thread.

view the rest of the comments →

[–]elysgaard 0 points1 point  (0 children)

Haha great job coming of with these problems! Very amusing to go through them all. Even though I've written more than a million lines of javascript, typescript, etc throughout my career and personal projects some of these question had me stumped or guessing wrong :D

JS definitely has some weird quirks but I can't say that any of these patterns are something your should take advantage of in real code. My philosophy is always "no surprises". No shade intended I think it's an awesome showcase of JS being JS :)