I need code help with these javascript questions Create a BankAccount constructor function that takes a user's name and balance. Add a method called deposit(amount) that increases the balance and logs the new balance, and another method withdraw(amount)

May 1, 2025 - 04:13
 0
I need code help with these javascript questions Create a BankAccount constructor function that takes a user's name and balance. Add a method called deposit(amount) that increases the balance and logs the new balance, and another method withdraw(amount)