Javascript WTF
A site where we can all share in those little WTF moments we enjoy with Javascript
Appending a string to null treats it as a string
t = 'test' undefined t += 'ing' "testing" t=null null t += 'ing' "nulling"
« Identical arrays are not equal?!
Arrays equal Strings?! »