Difference between local object and global object
Answers
Answered by
2
Answer:
The object declared outside all function bodies is known as global object. The object declared inside a function body is known as local object
Answered by
0
Answer:
Explanation:
Global Object Vs local object
- global objects have global scope and local object have local scope
- window is global object so window.console.alert("hello") is same as console.alert("hello") and any code which the script doesn't specifically start up as a background task has a Window as its global object. Th
- The properties of the global object are automatically added to the global scope.
Similar questions