function check(a, b = 0) { document.write("Value of a is: " + a + " Value of b is: " + b + "<br>"); } check(9, 10); check(1);