in JavaScript by (31.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 (32.2k 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

0 votes
asked Mar 24, 2021 in JavaScript by sharadyadav1986 (31.6k points)
...