+ 1
I wan to decrease the number by clicking on the button how can I do it
16 odpowiedzi
+ 3
https://code.sololearn.com/WnrIGKnggi2G/?ref=app
+ 2
https://code.sololearn.com/Wo74UpYFC8DE/?ref=app
+ 1
Don't forget js is case-sensitive
https://code.sololearn.com/WjwERA14iHRI/?ref=app
0
Calviղ
If I want to decrease upto zero then I should mention in loop right?
But it's not working for me
0
Calviղ
But y it is not working with while loop?
0
Jacob Tracey
Yeah bro before I removed if condition and wrote while loop it didn't work
Now it's working
0
Calviղ
What's wrong with this code it is not decreasing to 99 y ?
https://code.sololearn.com/WpEL9Wi82vBw/?ref=app
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