Difficulty: 5/10class syntax, inheritance, constructorjavascriptCopyScenario Questions0-2 years experience1We need a simple User class with name and email, and an Admin subclass that adds a role property. How would you implement this using ES6 classes?2If you create an instance of Admin and call a method defined only on User, what will be logged? Show the code and explain the result.3What error do you get if you omit super() in the Admin constructor, and why?Follow-up QuestionsWhat happens if the subclass constructor doesn't call super()? How would you test that the inheritance works as expected?Can you think of any edge cases when extending built‑in objects?Suggest Improvement