Javascript and Variable Scope CAPTCHAs
|
|
Today I have been doing some Javascript in order to finish some details to the Bloginto extension for Chrome, and run into a situation where two functions use a variable named i inside a for loop without explicitly defining it with the var keyword, here is an example : function funA(){ var arrA = ['a', 'b', 'c']; for(i=0; i |
03 août 2010 à 02:27:53
0 Commentaire(s)
Proposé par : martani
