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.
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.
We can access dom properties with document object
Happy Learning
Top comments (0)