Hacker News new | ask | show | jobs
by cdsanchez 5419 days ago
His example has an error. He forgot to return newObject at the end of the fromPrototype function. The fromPrototype function returns an instance (an object) that inherits from the given prototype and with the same properties you passed in with the object.
1 comments

Thanks.