Define the following terms Object Event Handler Local Variable-02229
This subjective question is related to the book/course vu mth101 Calculus And Analytical Geometry. It can also be found in vu mth101 Mid Term Solved Past Paper No. 1.
Question 1: Define the following terms.
defining the scope of a variable. A variable can be either local or global in scope
- Object
- Event Handler
- Local Variable
- Scope of Variable
- Array
Answer:
Object
A named collection of properties(data, state) & methods (instructions, behavior)Event Handler
An event handler is acommand which calls a function when an event happens, such as the user click in ga buttonLocal Variable
Declaring variables (using the var keyword) within a function, makes them localoThey are available only within the function and hold no meaning outside of itScope of Variable
Defining the space in which a variable is effective is known asdefining the scope of a variable. A variable can be either local or global in scope