0

a bug occurs when clicking the plus and minus buttons

Can anyone help me solve this bug? When I click the plus and minus buttons and also when I try to change the value of the input type number https://code.sololearn.com/Wd1e4s8qosZI/?ref=app

18th Mar 2019, 9:21 AM
Hafizd Jubaidir
Hafizd Jubaidir - avatar
2 odpowiedzi
+ 3
It looks like you're using the same variabile to count both things.
18th Mar 2019, 10:46 AM
Alexandru Zmau
Alexandru Zmau - avatar
0
Alexandru Zmau ah yeah you're right it turns out I'm wrong 😔 thank you for answering
19th Mar 2019, 6:12 AM
Hafizd Jubaidir
Hafizd Jubaidir - avatar