60. create your own `new` operator
Share
easy - accepted / - tried
new
operator is used to create new instance objects.
Do you know exactly what new
does?
You are asked to implement myNew()
, which should return an object just as what new
does but without using new
.
Pay attention to the return type of constructor.
Related Lists
the good and bad bits of JavaScript