name and age) and returns an object. Let's call this function makePerson. This function will:
name property to the newly created object with its value being the 'name' argument passed into the functionage property to the newly created object with its value being the 'age' argument passed into the functionpersonStore object, create a property greet where the value is a function that logs "hello".
personFromPersonStore that takes as input a name and an age. When called, the function will create person objects using the Object.create method on the personStore object.
introduce method to the personStore object that logs "Hi, my name is [name]".
PersonConstructor that uses the this keyword to save a single property onto its scope called greet. greet should be a function that logs the string 'hello'.
personFromConstructor that takes as input a name and an age. When called, the function will create person objects using the new keyword instead of the Object.create method.
introduce method to the PersonConstructor function that logs "Hi, my name is [name]".
PersonClass. PersonClass should have a constructor that is passed an input of name and saves it to a property by the same name. PersonClass should also have a method called greet that logs the string 'hello'.
DeveloperClass that creates objects by extending the PersonClass class. In addition to having a name property and greet method, DeveloperClass should have an introduce method. When called, introduce should log the string 'Hello World, my name is [name]'.
adminFunctionStore that has access to all methods in the userFunctionStore object, without copying them over individually.
adminFactory function that creates an object with all the same data fields (and default values) as objects of the userFactory class, but without copying each data field individually.
adminFactory objects is 'Admin' instead of 'User'.
adminFactory objects have access to adminFunctionStore methods, without copying them over.
sharePublicMessage that logs 'Welcome users!' and will be available to adminFactory objects, but not userFactory objects. Do not add this method directly in the adminFactory function.
robotMixin properties to robotFido. Do this in a single line of code, without adding the properties individually.