Reputation: 1651
can you explain how did this assignment is work,
var fe, f = document.forms[0], h;
which one equal to which one.
Upvotes: 1
Views: 275
Reputation: 32233
Above is equivalent to
var fe;
var f = document.forms[0];
var h;
Basically, the 'comma' ends one declaration and starts another. fe and h would be undefined after the above statement whereas f will be set to first form in the document.
Upvotes: 9