Learn more with dummies

Enter your email to join our mailing list for FREE content right to your inbox. Easy!

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
(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).