Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
As previously noted, you can use script objects for various purposes. Many times, you use them to take advantage of the persistent nature of their properties. A property is very similar to a variable. In fact, use of the term property variable is not inaccurate. Like ordinary variables, you can assign values to properties, use them in expressions, pass them as arguments to handlers, and so on.
To define a property, you write the keyword property followed by the name you choose, followed by a colon, followed by the initial value to assign to that property. This is the general format: