Question 18 of 5831%
18
Consider the below code snippets, What will be the output?
function outside() {
var x = 5;
function inside(x) {
return x * 2;
}
return inside;
}
outside()(10);
18/58
function outside() {
var x = 5;
function inside(x) {
return x * 2;
}
return inside;
}
outside()(10);