// Math.abs(n) function M_abs(n){ if(n<0){ n=-n; } return n; } // Sample Code log(M_abs(0),"\n"); log(M_abs(1234),"\n"); log(M_abs(-456), "\n");