This list studies the JavaScript implementation of the W3C DOM in the various browsers. It has a strongly practical bend. Discussion of the standards is not forbidden, but the most important topic should be how the standards turn out to work in practice.
Hi! ... The biggest practical difference I've stumbled upon is that in the first case you can call the function before the declaration, in the second case you
... I'm really bad with that. But I can tell you this: if you assign the function to a variable (your second example) *always* scope it locally with "var" or
Re. your first question: The first version does not explicitly declare f before defining it, so if f already exists in the reach of the scope in which you're
1. I think I did know the answer once upon a time, but I can't be sure now. I think, personally, there is no difference. When I actually still 'assign' a
To get around cross-browser issues, use a framework API like Prototype or Jquery. Example (after including prototype.js): someDiv.observe('click', function() {