Question: A JavaScript closure is created when _ _ _ _ _ . a . a method is created within the constructor function for an object
A JavaScript closure is created when
a a method is created within the constructor function for an object
b a method is defined for an object prototype
c a copy of a function that does not include its lexical environment is made
d a copy is made of a function that includes the lexical environment of variables used within that function
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
