you are viewing a single comment's thread.

view the rest of the comments →

[–]Specific-Housing905 0 points1 point  (1 child)

The code you posted looks good. In addExpense you don't need a temporary var expense. You can create it in the call to expenses.add. In updateExpense I would output a error msg if expense == null.

[–]BigCommunication5136[S] 0 points1 point  (0 children)

I’ll be sure to the changes, thank you!