Vidyalelo
JavaScript · Q37

Array And Function

Programming · JavaScript · question 37

Q37

What is the purpose of the dynamic scoping?

A.
Variables can be declared outside the scope
Answer
B.
Variables must be declared outside the scope
C.
Variables cannot be declared outside the scope
D.
None of the mentioned

Answer: Option A

Solution

Answer: Option A
Solution:
Dynamic scoping creates variables that can be called from outside the block of code in which they are defined. A variable declared in this fashion is sometimes called a public variable.