Hacker News new | ask | show | jobs
by giberson 5521 days ago
This is not the case, because in the constructor person is being set to the argument. If the argument is not supplied (undefined), calling the instantiated object's gender property will result in undefined. [tested and confirmed]