function x(w){function y(v){return w+v;} return y;}
var z3 = x(3);
var z7 = x(7);
document.write("<br>f3= "+z3(8)+"<br>f7= "+z7(8));

f3= 11
f7= 15