+1

Need help with increment decrement operators.

https://code.sololearn.com/WTgYOrroRatl/?ref=app

4/5/2020 8:15:23 PM

Cam

2 Answers

New Answer

+2

<script> var quantityVar = 0; var textQuan = "Quantity:"; function quantity(){ quantityVar++; document.getElementById("print").innerHTML = textQuan +" "+quantityVar; } function minus(){ quantityVar--; document.getElementById("print").innerHTML = textQuan +" "+quantityVar ; } </script>

0

Thanks!