[thelist] JavaScript (Ajax) question - IE

VOLKAN ÖZÇELİK volkan.ozcelik at gmail.com
Thu Nov 10 01:21:15 CST 2005

> Adding var makes the variable a local variable, which means that the
> variable won't conflict with a global object

That's why assigning your local variances with var is a "good coding
practice". There are several other subtler issues (which I cannot
remember by now but have pained a lot) that raise rarely when you
don't declare your variances with var as well.

Volkan Ozcelik
+>Yep! I'm blogging! : http://www.volkanozcelik.com/volkanozcelik/blog/
+> My projects/studies/trials/errors : http://www.sarmal.com/

More information about the thelist mailing list