function x (w, e){return w+e + m;}
var m = "Outer value of m";
{var m = "Inner value of m.";
document.write("42 "+4*6 + x(" 3", 4));}
document.write("m after: "+m);

42 24 34Inner value of m.m after: Inner value of m.