var t = function (t = "foo", f = 5) { return t + " bar " + f; }; var a = function (t, f = 5) { return t + " bar " + f; };