Learn to use Reflect.construct

33.3% Acceptance

In this lab, you will learn how to use Reflect.construct() by creating a BasicPerson class and a new instance of that class using Reflect.construct(). The Reflect.construct() is a method that works similar to the new operator to create new instances of a class. Your task is to create a BasicPerson class, then use Reflect.construct() to create a new instance called 'John' aged 30, and export the instance from the index.js file using ESM syntax.