Build a Bank Account Class

Build a BankAccount class from scratch. The constructor takes a starting balance. Add a deposit(amount) method that adds to the balance and a withdraw(amount) method that subtracts from it. Both methods should return the new balance.
JavaScript
Console