Question: what is difference between local object?
Answer: The object declared outside all function bodies is known as global object. All functions can access the global object. The object declared inside a function body is known as local object.