Account 3

The code on this page has a successful implementation of depositAll using arrow functions

Try it!

console.log('before', ron.balance);
ron.depositAll([1,2,3,4]);
console.log('after', ron.balance);