- 1

i need help

// CODE var s = document. getElementsByTagName("span"); for (var x=0; x<s.length;x++) { s[XXX].style.backgroundColor = "#33EA73"; } on XXX I have to assign a number, but I don't know what help please

13th Sep 2020, 3:51 PM
Vilem Haupt
Vilem Haupt - avatar
4 Answers
0
x
13th Sep 2020, 3:52 PM
Abhay
Abhay - avatar
+ 1
@Abhay thanks
13th Sep 2020, 3:54 PM
Vilem Haupt
Vilem Haupt - avatar
0
you would use x, that's why it's in loop condition.
13th Sep 2020, 3:53 PM
Bahha┣
Bahha┣ - avatar
0
@Bahha thanks !
13th Sep 2020, 3:54 PM
Vilem Haupt
Vilem Haupt - avatar