Always use undefined, and never null
writingjavascript.com
writingjavascript.com
I've never experienced this, but if there is ever a point in my logic where undefined and null are both valid values, they probably require different handling, so just always using undefined is not a good idea.