• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part III: Appendixes > JavaScript and Objects

JavaScript and Objects

JavaScript is an object-oriented scripting language, which means it thinks in terms of objects, properties, and methods. Although you can do a lot of work in JavaScript without being aware of its object-oriented nature, you’re always using JavaScript objects when you work in this language; and the more you know about them, the more the language will make sense.

In scripting terms, an object is a collection of attributes that describe it and actions that it can perform. The attributes are called properties; the actions are called methods. Properties are similar to variables, only they’re always associated with a particular object. Methods are similar to functions. An object and its properties and methods are referred to in JavaScript using dot syntax, like this:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint