var a = new Array(); var b = new Array(); function sample(){ p = 1 / 5; p = p / 4; p = 2 * p; $("#memo").html(p); }