ganqqwerty / 123-Essential-JavaScript-Interview-Questions

JavaScript interview Questions
BSD 3-Clause "New" or "Revised" License
5.01k stars 1.18k forks source link

Question No.3 - Answer example incorrect #45

Closed mavrik closed 6 years ago

mavrik commented 6 years ago

The function defined in the prototype function displayIncreasedSalary() is trying to call the private function increaseSalary() defined in the constructor function. This doesn't work.

ganqqwerty commented 6 years ago

I don't think we need that section of code anyway. Thanks for pointing out!