DEV Community

stalin s
stalin s

Posted on



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


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 description


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

Oldest comments (0)

Visualizing Promises and Async/Await 🤯

async await

Learn the ins and outs of Promises and Async/Await!