var test = function() {
var data = 100;
var fun1 = function() {
data= data*5;
}
var fun2 = function() {
alert (data);
}
fun1();
fun2();
}();
function myfun() {
var data = 100;
function f1() {
data = data*5;
}
function f2() {
alert (data);
}
f1();
f2();
}
var data = 100;
var fun1 = function() {
data= data*5;
}
var fun2 = function() {
alert (data);
}
fun1();
fun2();
}();
function myfun() {
var data = 100;
function f1() {
data = data*5;
}
function f2() {
alert (data);
}
f1();
f2();
}