Vidyalelo
JavaScript · Q42

Parsing, Benchmarking And Logging

Programming · JavaScript · question 42

Q42

The lexical scooping in JavaScript is based on which of the following?

A.
Segments
B.
Blocks
C.
Functions
Answer
D.
Entire code

Answer: Option C

Solution

Answer: Option C
Solution:
JavaScript has lexical scoping based on functions but not blocks.