Object.create() Lab

Easy
12
47.0% Acceptance

In this lab, you will be creating two objects Person and Student. The objective is to use Object.create() to create the Student object with its prototype set to the Person object. You will also need to add a new property course to the Student object and export them using ESM syntax.

  • Use const Person for creating the Person object
  • Use const Student for creating the Student object
  • Use the Object.create() method to create the Student object with its prototype set to Person

Make sure you export the function