0 votes
in JavaScript by (30.6k points)
In JavaScript, what kind of scoping is used?

a) Literal scoping

b) Sequential scoping

c) Segmental scoping

d) Lexical scoping

1 Answer

0 votes
by (30.8k points)

Answer: D

Reason: In JavaScript, the lexical scoping is used just like many other modern languages.This means a function gets executed using the scope chain which was in effect, when they are defined instead of variable scope which was in effect when they are invoked/called.

Related questions

...