News: Collection of JavaScript Tools And More
I was impressed to see that Smashing Magazine, an online designer magazine, choose to feature a collection of JavaScript resources this week. Some of them are really useful:
60 More AJAX- and JavaScript Solutions For Professional Coding
Douglas Crockford revisited global variables and decided to change his definition of best practices. The gist of which is, instead of using “var foo = ‘value’;” in the global space, you should use:
/*global foo*/ foo = {};
Find out more: Global Domination, Part Two

Would you mind summarising Crockford’s decision to remove the var keyword, if you can?
Comment by Adam — April 18, 2008 @ 12:29 am
If you use “var foo = {}” and then try a statement such as: “var pity = this.pity || {};”. It will fail in certain browsers (:cough: IE :cough:)… If , in the global space, you drop the “var” part, as in my example, then the statement works in all browsers.
The comment in my example is for Crockford’s jslint program, so that it doesn’t throw an error when encountering a variable in this format.
Comment by Matt Snider — April 18, 2008 @ 9:16 am