What do for...in, Object.keys, and Reflect.ownKeys list for this object?
const base = { inherited: true };
const obj = Object.create(base);
obj.own = true;
Object.defineProperty(obj, "hidden", { value: true });
for (const key in obj) console.log(key);
console.log(Object.keys(obj));
console.log(Reflect.ownKeys(obj));
console.log("inherited" in obj, Object.hasOwn(obj, "inherited"));
The answer
Work out every line it logs, in order. Then check.
Checking your sign-in…