A snippet of the JSOP_ADD code from the 1998 SpiderMonkey interpreter

Why does 1 + "1" equal "11" in JavaScript?

and why is this a pitfall in production, and where did it come from in the first place?

· 8 min