Class resulting in NaN instead of a number
Advertisements I tried creating a class BankAccount in which another class SavingsAccount extends it. I then created an instance of the class janesAccount, called the deposit method and logged to the console its balance after any of the methods have been called (i.e deposit() or withdraw()) But instead of it to console.log 2000, it logs… Read More Class resulting in NaN instead of a number