Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: irt.org FAQ Knowledge Base Q1321

Feedback on: irt.org FAQ Knowledge Base Q1321

Sent by Dev on Friday May 11, 2007 at 11:34:07 - feedback #4560

Worth:
Worth reading

Length:

Technical:

Comments:
handy as I was having problems with variables being set as global which is useless because I wasn't using the var declaration.
Thanks




Sent by david on Wednesday May 23, 2007 at 12:22:29 - feedback #4614

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





©2018 Martin Webb