function abc (a, b, c) { c=c||100; var x = a+b*c; return x; } alert(r1 = abc (2, 2)); alert(r2 = abc (2, 2, 10));