Object.create() Lab
Easy
12
47.3% 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 thePerson
object - Use
const Student
for creating theStudent
object - Use the
Object.create()
method to create the Student object with its prototype set toPerson
Make sure you export the function