+ 10

Sololearn problem??

Why whenever the barn goes up or down to whatever number but when I decrease the number to where it says 0 and for example if I went up 5 numbers and reached 0 it should be black, but when I do this and when it reaches 0 it stays green if you get what I mean https://code.sololearn.com/Wo4N4ykin6Bj/?ref=app

1st Mar 2022, 1:09 AM
Junior
Junior - avatar
25 Respostas
+ 2
Yea i already tried that, it still shoudlbt work as in both of my if statement i added and “do not” statement
1st Mar 2022, 1:24 AM
Junior
Junior - avatar
+ 2
Jay Matthews no i want the 0 to stay black
1st Mar 2022, 1:29 AM
Junior
Junior - avatar
+ 2
Okay, thank you FF9900
1st Mar 2022, 1:34 AM
Junior
Junior - avatar
+ 2
Okay, probably my last question, how do I make it so after the reset button does its thing not leave off the last number, like if i left off the number 20, pressed rhe reset button, the added 1, the nimebr would go to numbef 21, i jsut wabt it to go back to 1 after the reset which is 0
1st Mar 2022, 2:00 AM
Junior
Junior - avatar
+ 2
I did that, but javascript be mean and after the reset if 0 okay, BUT if i add an increment of 1 (the + symbol) and BEFORE i clicked the reset for example i left off the number 21, and i did the increment AFTER the reset the number will immediatley go to 22 thats myn problem
1st Mar 2022, 2:04 AM
Junior
Junior - avatar
+ 2
I did that already
1st Mar 2022, 2:54 PM
Junior
Junior - avatar
+ 1
Okay, good good, now you know how when the numebr is below 0 and it shows the negative symbol, how can i apply that when the number is above 0 and it has a ‘+’ symbol FF9900 Jay Matthews
1st Mar 2022, 2:24 AM
Junior
Junior - avatar
+ 1
How did you make it so the zero and the negatives dont have the +?
1st Mar 2022, 2:48 PM
Junior
Junior - avatar
+ 1
Im asking whenever i click the positive button to whatever number, then if i click the reset btn or i go to the negatives the positive synbol js ztill there
1st Mar 2022, 2:55 PM
Junior
Junior - avatar
0
So do i do that in javascript?
1st Mar 2022, 2:57 PM
Junior
Junior - avatar
0
I saw that u used display.classlist.remove(“positive”) can i do that?
1st Mar 2022, 3:00 PM
Junior
Junior - avatar
0
Yea it shwos a synyax error when i do that
1st Mar 2022, 3:09 PM
Junior
Junior - avatar
0
So, document.getElementById(“0”); display.classlist.remove(“positive”)?
1st Mar 2022, 3:13 PM
Junior
Junior - avatar
0
It says now that classlist.remove is undefined
1st Mar 2022, 3:16 PM
Junior
Junior - avatar
0
Okay thank tou it now works!
1st Mar 2022, 3:21 PM
Junior
Junior - avatar
0
Change line 4 to btn>0 Change line 11 to btn<=0 Done!!! 🙂 that is all
2nd Mar 2022, 6:33 AM
Vivian Lo
Vivian Lo - avatar
0
Change line 34 right: 5px;
2nd Mar 2022, 4:11 PM
Rahman
Rahman - avatar
0
Please i need help on python while loop
2nd Mar 2022, 4:16 PM
Ampong Godfred
Ampong Godfred - avatar
0
ef search(text,word): text = input() word = input() if word == text: return "Word found" else: return "Word not found" print(search(text,word)) can somene tell what's wrong in this code line? much apreciation, i'm clopet noob in python
2nd Mar 2022, 6:14 PM
Da silva
0
total = 0 #your code goes here age = int(input()) x = 0 while x<6: if (age > 2): total += 100 age=int(input()) continue else age=int(input()) continue x += x print (total)
2nd Mar 2022, 10:23 PM
André Dienes Friedrich
André Dienes Friedrich - avatar