Assume the following JavaScript program was interpreted using staticscoping rules. What value of x is displayed in function sub1? Underdynamic-scoping rules, what value of x is displayed in function sub1?var x;function sub1() {document.write("x = " + x + "");}function sub2() {var x;x = 10;sub1();}x = 5;sub2();
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here