function y(a){return m+a;}
function x (w, e){var m = 2; return w+y(e) + m;}
var m = "This is m.";
document.write("42 " + "fun val->"+x(" 3", 4)+"<br>");
document.write("m is now x"+m);

42 fun val-> 3This is m.42
m is now xThis is m.