SuperSimpleDev / javascript-course

682 stars 552 forks source link

Variable Section ( -= ) ShortHand Operator #41

Open partfix opened 1 year ago

partfix commented 1 year ago
It's not a bug or something, I just find out that I could do the empty cart on another way, so yeah. 

<button  onclick="showQuantity -= showQuantity; 
       console.log('Cart Reset ')">Reset Cart </button>
Icenogle commented 7 months ago

I think this also has been mentioned during the class?