Sign in
Log inSign up
Naz Islam

38 likes

·

349 reads

2 comments

Damien
Damien
Sep 10, 2024

Good ideas. The execution is kind of okay. You should have an object that holds the account name and the related amount. So that when you use your "updateAmount" method, you won't have to compare strings. It's adding complexity for nothing. Just pass the amount as a parameter. Good article tho. Keep going !

·
Maneesh Kumar
Maneesh Kumar
Oct 1, 2024

nice one

·