Question: Consider the following JavaScript program with static - scoping:Answer the questions: What is the value of a in sub 1 ( ) ? What is

Consider the following JavaScript program with static-scoping:Answer the questions:
What is the value of a in sub1()?
What is the value of b in sub1()?
What is the value of a in sub2()?
What is the value of c in sub2()?
You can simply answer the value of each variable in each sub-question. You don't need to state why.
Consider the following JavaScript program with

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!