+ 1

What's wrong with this code? It's supposed to show the text in red through the js getElementById function but it's not working

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

24th Jun 2018, 4:47 PM
Ahmed Yakubu
Ahmed Yakubu - avatar
4 Respuestas
+ 7
Ahmed Yakubu try this it will work c.style.color="red";
24th Jun 2018, 4:51 PM
Random
Random - avatar
+ 6
Ahmed Yakubu your welcome :)
24th Jun 2018, 5:10 PM
Random
Random - avatar
+ 1
that worked...thank you sanjeevini kranthi
24th Jun 2018, 5:07 PM
Ahmed Yakubu
Ahmed Yakubu - avatar
0
It's red for me...
24th Jun 2018, 4:49 PM
Janning⭐
Janning⭐ - avatar