Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardJavaScriptprototype chain internalsSingle-choice MCQ

What is logged?

class A{constructor(){this.x="a"}} class B extends A{x="b"}\nconsole.log(new B().x);