let calls = 0; function id() { calls++; return calls; } function f(x = id()) { return x; } f(); f(10); f(); console.log(calls);