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

Latest comments (0)

Visualizing Promises and Async/Await 🤓

async await

☝️ Check out this all-time classic DEV post on visualizing Promises and Async/Await 🤓