Question: 3.1. Assume the following code is using staticscoping rules. What would be the output? (3pts) ar x function methodA) print( X is, x); function methodB)
3.1. Assume the following code is using staticscoping rules. What would be the output? (3pts) ar x function methodA) print( "X is", x); function methodB) var x 123; methodA0 methodB) 3.2. If the previous code is using dynamicscoping, what would be the output? (3 pts)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
