It only takes a quick search of “JavaScript” in r/ProgrammerHumor to understand the love/hate relationship that software developers have with JavaScript. The language boasts dynamic types, which therefore creates a lack of type-safety, often leading to weird and wonderful results. One of the subreddit’s favourite examples is: [6, -2, 2, -7].sort(); (more…)