0 votes
in JavaScript by
What is the primary rule of the Lexical Scoping?

a) Functions are always declared in the scope

b) Variables are declared inside the function

c) Functions are always declared outside the scope

d) Functions gets executes using scope chain

1 Answer

0 votes
by

Answer: D

Reason: The fundamental rule of lexical scoping is that: In the JavaScript, A function gets executed using the scope chain which was in effect, when they are defined.

Related questions

0 votes
asked Mar 24, 2021 in JavaScript by sharadyadav1986
0 votes
asked Oct 9, 2023 in JavaScript by JackTerrance
...