What is the DOM and BOM in JavaScript? If someone could explain these in layman terms it would be great! I like to get a deeper understanding of these.
DOM : The document object represents the whole html document. When html document is loaded in the browser, it becomes a document object.
BOM : The window object represents a window in browser. An object of window is created automatically by the browser.