JavaScript Vs DOM Vs BOM, relationship explained

Rajakvk's Blog

To understand these terms clearly, we need to know how JavaScript implemented.

Indeed, a complete JavaScript implementation is made up of three distinct parts

  • The Core (based on ECMAScript spec)
  • The Document Object Model (DOM)
  • The Browser Object Model (BOM)


ECMA-262 describes it like this
“ECMAScript can provide core scripting capabilities for a variety of host environments, and therefore the core scripting language is specified…apart from any particular host environment.”

A Web browser is considered a host environment for ECMAScript, but it is not the only host environment. A list of other host environments listed here.

Apart from DOM and BOM, each browser has its own implementation of the ECMAScript interface.

Document Object Model (DOM)

The Document Object Model (DOM) is an application programming interface (API) for HTML as well as XML.

The DOM maps out an entire page as a document composed of a hierarchy of nodes like…

View original post 318 more words


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s