DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

stalin s
stalin s

Posted on

BOM & DOM

BOM refers to Browser Object Model while DOM refers to Document Object Model..

BOM

BOM often defined as a set of JavaScript browser objects . We can access BOM via a window object . So let's say if we open up inspector tool and type console.log(window) , we can view the list of methods as well properties.

Image..
Image description

DOM

DOM refers to your HTML in JavaScript. So let's open the inspector tool , click on the β€œElements” tab and you’ll see the DOM.

Image description

We can access dom properties with document object

Image description

Happy Learning

Top comments (0)

We want your help! Become a Tag Moderator.
Fill out this survey and help us moderate our community by becoming a tag moderator here at DEV.