Is this helpful ?
easy - accepted / - tried
You can use Object.create() to create a new object.
Can you write your own
myObjectCreate() to do the same(well for the basic usage) ?
- you don't need to support
propertiesObject- 2nd parameter of Object.create
- throw an Error if non-object is passed in. (why?)
Object.setPrototypeOf()should not be used.
Let's try to solve this problem within 10 mintues.