+ 1

I wan to decrease the number by clicking on the button how can I do it

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

9th Apr 2022, 8:44 AM
UNKNOWN
16 Answers
+ 3
https://code.sololearn.com/WnrIGKnggi2G/?ref=app
9th Apr 2022, 10:24 AM
Calviղ
Calviղ - avatar
+ 2
https://code.sololearn.com/Wo74UpYFC8DE/?ref=app
9th Apr 2022, 1:26 PM
Calviղ
Calviղ - avatar
+ 1
Don't forget js is case-sensitive https://code.sololearn.com/WjwERA14iHRI/?ref=app
10th Apr 2022, 11:32 PM
Mohammed RIFAI
Mohammed RIFAI - avatar
0
Calviղ If I want to decrease upto zero then I should mention in loop right? But it's not working for me
9th Apr 2022, 10:17 AM
UNKNOWN
0
Calviղ But y it is not working with while loop?
9th Apr 2022, 10:22 AM
UNKNOWN
0
Jacob Tracey Yeah bro before I removed if condition and wrote while loop it didn't work Now it's working
9th Apr 2022, 10:27 AM
UNKNOWN
0
Calviղ What's wrong with this code it is not decreasing to 99 y ? https://code.sololearn.com/WpEL9Wi82vBw/?ref=app
9th Apr 2022, 10:36 AM
UNKNOWN
0
Jacob Tracey Actually it should decrease atleast once and result should be 99 but here it's not decreasing. This is what I am not understanding
9th Apr 2022, 10:45 AM
UNKNOWN