Get to know MDN better
The JavaScript exception "more arguments needed" occurs when there is an error with how a function is called. More arguments need to be provided.
There is an error with how a function is called. More arguments need to be provided.
The Object.create() method requires at least one argument and the Object.setPrototypeOf() method requires at least two arguments:
You can fix this by setting null as the prototype, for example:
This page was last modified on Jul 8, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.