0 votes
in JavaScript by
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

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
0 votes
asked Dec 1, 2022 in JavaScript by john ganales
...