Question: Consider the following JavaScript program with subprograms function main() { var i, j; function fun1() { var a; i=i+1; j=j+1; document.write(fun1: i=+i+ j=+j+ ); }

Consider the following JavaScript program with subprograms Provide the output of the above program using the static and dynamic scoping. Binding Output of the above program Static Scoping [3 Points) Dynamic Scoping (3 Points]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
