JavaScript has a number of fascinating behaviours which are covered pretty well in Gary Bernhardt&am