what are the browser object in javascript? and why need ref of window for using them?

41 views Asked by At

browser objects why we need to use reference of window foe using browser object like location, document

I am trying to understand which are browser object and which are window object? and document is window object or property?

1

There are 1 answers

0
PoolloverNathan On

If I understand your question correctly, things like location and document are properties of window. However, as any property of window is implicitly global, it's common to just type document instead of window.document.