Right, but really it appears to me that you are storing it in two places - in the itemList but also in the DOM. I’m not a big fan of storing it in two places without a really good reason. But OK…
But in any case, this is a learning forum so we usually don’t just handout answers. I would want to see what you’ve tried. So far, what I see is this:
let id = parseInt(element.dataset.id)
OK, so you parse out the id and you show the balance. But what do you have to do here? I think you need to create a new record and insert that into the proper place in your data and in the DOM.
Is that clear? You’re already doing some manipulation of those in the other methods. Are you able to figure out how to change the record in the itemList? Just approach this one step at a time and if you can’t figure out a step, check in with us.
The other problem is that I don’t know what you want to happen when the edit is pressed. Does the app modify the pressed record with the data currently in the input fields? Does a modal pop up with the existing record and they edit it and submit? Do the fields in the record UI turn into editable inputs? What is the UX here? What do you expect to happen?