|
Feedback on: irt.org FAQ Knowledge Base Q1321
irt.org | About | Feedback | 4614 [ previous next ] Feedback on: irt.org FAQ Knowledge Base Q1321
Sent by david on Wednesday May 23, 2007 at 12:22:29
Worth: Very worth reading
Length:
Technical:
Comments: You have concisely, clearly and thoroughly explained the differences between local and global variables.Some other tutorials I have read are inconsistent with their presentation of local and global variables, which serves to create more confusion and frustration.
One tutorial mentioned that you can declare a local variable within a function without using the var keyword.Is that possible? My understanding is, and verified by your tutorial, is that whenever a variable is declared within a function without using the var keyword, then it should always be considered as being global.In essence then, a variable is local within a function only if, it is preceded with the var keyword such as: var sky = 7; without the var keyword, a variable declared within a function should always be considered a s being global. Is that correct?
Thank you for the nice tutorial
Other feedback on 'irt.org FAQ Knowledge Base Q1321' - show all
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.