You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that we need to declare the variable "i" in the for loop using the keyword "var". example
for ( var i = 0 ; i <scores.length ; i++)
As I have learned in the previous lessons that if I don't declare a variable inside a function it becomes a global variable. What if I don't write var in front of i? Does that make it a global variable??
The text was updated successfully, but these errors were encountered:
I see that we need to declare the variable "i" in the for loop using the keyword "var". example
for ( var i = 0 ; i <scores.length ; i++)
As I have learned in the previous lessons that if I don't declare a variable inside a function it becomes a global variable. What if I don't write var in front of i? Does that make it a global variable??
The text was updated successfully, but these errors were encountered: