What do length and name report for these functions?
function a(x, y) {}
function b(x, y = 2, z) {}
function c(...args) {}
const d = (x, { y }) => {};
console.log(a.length, b.length, c.length, d.length);
const e = function () {};
const f = function named() {};
const obj = { method() {}, ["key" + 1]: () => {} };
console.log(e.name, f.name, obj.method.name, obj.key1.name, a.bind(null).name);
a.length = 10;
console.log(a.length);
The answer
Work out every line it logs, in order. Then check.
Checking your sign-in…