Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardJavaScriptObject.create nullSingle-choice MCQ

How can a null-prototype object still be coerced to a primitive successfully without inheriting any methods?

const m = Object.create(null); m[Symbol.toPrimitive] = () => 'ok'; const s = `${m}`; // s === ?