What type of scope is present in JavaScript?

Giao Linh

New member
What type of scope is present in JavaScript?
A. Lexical
B. Literal
C. Both Lexical and Literal
D. Local
 
Answer: a
Explanation: Lexical scoping (sometimes known as static scoping) is a convention used with many programming languages that sets the scope (range of functionality) of a variable so that it may only be called (referenced) from within the block of code in which it is defined.
 

Tìm kiếm

Back
Top