Object.create

ref – https://stackoverflow.com/questions/62378057/what-is-the-difference-between-object-assignment-and-object-create Object.create(param) creates an empty object, with its __proto__ pointing to “param”. That way, the empty object can inherit properties from param. We’ll demo this by first creating a literal object with “person” variable referencing it. [crayon-682e404f6821f053047594/] Now, in JS, the base Object class is an object that has a prototype reference that … Continue reading Object.create