clipped from: weblogs.asp.net   

Three common mistakes in JavaScript / EcmaScript


Here are three common mistakes I've seen recently in script files.

Undefined is not null, except that it is.

You can't overload a function.

Undeclared variables are global.