Changes

Jump to navigation Jump to search
11 bytes added ,  16:15, December 17, 2009
Visibility of class members
Line 1: Line 1:  
'''JavaScript''' is a [[programming language]] used for [[website|web]] development. While it is primarily used as a scripting language, it has some [[object-oriented]] features.<ref>[http://mckoss.com/jscript/object.htm Object Oriented Programming in JavaScript] - Mike Koss</ref>
 
'''JavaScript''' is a [[programming language]] used for [[website|web]] development. While it is primarily used as a scripting language, it has some [[object-oriented]] features.<ref>[http://mckoss.com/jscript/object.htm Object Oriented Programming in JavaScript] - Mike Koss</ref>
   −
==Lessons in scope==
+
==Visibility of class members==
 
There are two sets of variables associated with any object you define in JavaScript.
 
There are two sets of variables associated with any object you define in JavaScript.
 
The first set of variables defined with the <code>this</code> keyword, are all public. The second set of variables, defined with the <code>var</code> keyword, are private. You can even use the same name for a public and private variable, and JavaScript can tell them apart.
 
The first set of variables defined with the <code>this</code> keyword, are all public. The second set of variables, defined with the <code>var</code> keyword, are private. You can even use the same name for a public and private variable, and JavaScript can tell them apart.
Siteadmin, Check users, nsTeam1RO, nsTeam1RW, nsTeam1_talkRO, nsTeam1_talkRW, oversight, Administrators
30,650

edits

Navigation menu