Hello! I’m learning to use variables for some basic arithmetic. I made a cute little prototype where you can add or remove types of fruit to an order. A subtotal for each fruit is shown.
Currently I am using one mode for each fruit, though I think this is the wrong approach, not only because I have no way to add all the subtotals together for the order total.
How can I achieve this in the most elegant way with the least amount of variables?