JavaScript is an Object Oriented Programming (OOP) language.
An OOP language allows you to define your own objects and make your own variable types.
Note that an object is just a special kind of data. An object has properties and methods.
The HTML DOM defines a standard set of objects for HTML, and a standard way to access and manipulate HTML documents.