JavaScript is an object-based language. To understand how to interact with the document object model you work with in JavaScript, you need to understand some basic object-related terms. The following table shows the ones you're likely to find most useful:
Term | JavaScript example |
---|---|
An object is a thing (noun). | A button is an object. |
You can describe an object with adjectives (properties). | A button object has a name and a type. |
An object can do things (methods). | A button object can click(). |
An object can respond to events (event handlers). | A button can recognize when it's been clicked (onClick). |
dummies
Source:http://www.dummies.com/how-to/content/javascript-object-terms.navId-405067.html
No comments:
Post a Comment