Remember: Null Means Null

Or something to that effect.  ComputerWorld, my go-to site for finding JavaScript errors in the wild on a slow blog day, comes up with this beauty:

Null is null
Click for full size

Ponder that as a koan.  Also, remember the following are not best practices:

  • Naming variables or objects null or any other reserved word.
  • Passing a string value of “null” when you meant to pass null.

Comments are closed.

wordpress visitors