Question: Computer language concept 1 Please let me know if you need more time; thank you in advance. Consider the following JavaScript example:(a) Assume that static
Computer language concept 1 Please let me know if you need more time; thank you in advance. Consider the following JavaScript example:(a) Assume that static scoping is used. List all variables, along with the functions in which they are declared, that are visible in the body of sub1.(b) Repeat part (a), but list the variables that are visible in the body of sub2.(c) Repeat part (a), but list the variables that are visible in the body of sub3.(d) Assume that dynamic scoping is used, and that main calls sub3, which then callsSub1, which then calls sub 2. List all variables, along with the functions in which theyare declared, that are visible in the body of sub1.(e)Repeat part (d), but list the variables that are visible in the body of sub2.(f)Repeat part (d), but list the variables that are visible in the body of sub3.A sample answer to one part of the problem might look like this:a(declared in main), b(declared in sub1), d(declared in su3)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
