I changed the way you described, but when I click on total i get NaN. And I still can't get the clear button to work, please help with the coding for these two parts!
I am making a price calculator using javascript. I've been struggling hours trying to figure this out, yeah i'm really new to this. Here is the requirements: