+ 3

Why can't i change color of text by js here ? O.o

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

10th May 2020, 12:52 PM
Pavel Durov
Pavel Durov - avatar
1 Réponse
+ 1
Here is the corrected code :)) window.onload = () => { var p = document .getElementsByTagName("p")[0]; p.style.color="red"; }
10th May 2020, 1:10 PM
Arb Rahim Badsa
Arb Rahim Badsa - avatar