Question: This JavaScript code contains nested functions; the functions sub 1 and sub 2 are both defined * inside * the function big ( ) .

This JavaScript code contains nested functions; the functions sub1 and sub2 are both defined *inside* the function big().
function big(){
function sub1(){
var x =7;
sub2();
}
function sub2(){
var y = x;
}
var x =3;
sub1();
}
Does Java allow nested methods?
Group of answer choices
yes
no

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 Accounting Questions!