Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.