My JavaScript editor is not working here on sololearn..it brings out message like example-"cannot set addEventListener of null" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

My JavaScript editor is not working here on sololearn..it brings out message like example-"cannot set addEventListener of null"

Javascript Editor not con ecting woth Html and Css editor on sololearn

22nd Sep 2019, 8:06 PM
Abdulrazaq Haroon
Abdulrazaq Haroon - avatar
13 Answers
+ 2
It's working it's that JavaScript loads first. You can write your code in that function and it will work 🤝🤝 window.onload = function (){ // }
22nd Sep 2019, 8:39 PM
Qudusayo
Qudusayo - avatar
+ 2
Abdulrazaq Haroon Do it now you see it will work True or False ?
22nd Sep 2019, 8:42 PM
Qudusayo
Qudusayo - avatar
+ 2
onload=()=>{ //debug const blueButton = document.getElementById('blue-button'); blueButton.innerHTML="Its working"; //debug! }
22nd Sep 2019, 8:46 PM
Solo
Solo - avatar
+ 2
Thanks Vasiliy your solution will also work👍
22nd Sep 2019, 8:48 PM
Abdulrazaq Haroon
Abdulrazaq Haroon - avatar
22nd Sep 2019, 8:53 PM
Solo
Solo - avatar
+ 1
and what should your program do?
22nd Sep 2019, 8:28 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
I'm not through with it yet...the final product should change the background and text as in day light mode and Night vision(black background and green text color)
22nd Sep 2019, 8:30 PM
Abdulrazaq Haroon
Abdulrazaq Haroon - avatar
+ 1
at first glance I don't see any references to css styles in the program anywhere. please, end your code
22nd Sep 2019, 8:35 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
Qudusayo ill try this
22nd Sep 2019, 8:40 PM
Abdulrazaq Haroon
Abdulrazaq Haroon - avatar
+ 1
Qudus thanks alot Qudusayo it worked
22nd Sep 2019, 8:45 PM
Abdulrazaq Haroon
Abdulrazaq Haroon - avatar
+ 1
Ярослав Вернигора (Yaroslav Vernigora) thanks alot, I've gotten a solution
22nd Sep 2019, 8:46 PM
Abdulrazaq Haroon
Abdulrazaq Haroon - avatar
0
You can show your code here?
22nd Sep 2019, 8:14 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
22nd Sep 2019, 8:19 PM
Abdulrazaq Haroon
Abdulrazaq Haroon - avatar