Help With "new"
#3

Quote:
Originally Posted by Backwardsman97
It refers to the scope of the variable. A variable created at the top of the script, is global and can be used anywhere. A variable created inside of a function, callback, etc. can only be used within the same structure it was created in. People will create variables inside of functions instead of making them global because the variable is only needed inside that specific function, callback, etc. I hope that makes sense.
Yes, that does make a lot of sense... Thank you very much...
Reply


Messages In This Thread
Help With "new" - by Scenario - 20.04.2010, 15:11
Re: Help With "new" - by Backwardsman97 - 20.04.2010, 20:33
Re: Help With "new" - by Scenario - 21.04.2010, 00:26

Forum Jump:


Users browsing this thread: 1 Guest(s)