function foo(x, options) { var y = options.y | 0; return x + y; }
function foo(x, y = 0) { console.log(x + y); }