JavaScript Object Terms - dummies

JavaScript Object Terms

Part of JavaScript For Dummies Cheat Sheet

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
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