0

I wrote my code on another editor and when i copy paste it to sololearn it gives me errors there isnt any syntax error.

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

13th Sep 2020, 9:51 AM
Sami Yemane
Sami Yemane - avatar
8 Antworten
+ 4
It's because your js code gets loaded before your html code. Add this and see window.onload=function(){ -- put your code here }
13th Sep 2020, 10:25 AM
OfcourseitsRohit
OfcourseitsRohit - avatar
+ 6
it's working. I made some corrections https://code.sololearn.com/WJ45uKbwA470/?ref=app
13th Sep 2020, 10:30 AM
OfcourseitsRohit
OfcourseitsRohit - avatar
+ 4
Save that code anyway. And post it here along with your question
13th Sep 2020, 9:53 AM
Divya Mohan
Divya Mohan - avatar
+ 4
The dom must fully load before the js code gets activated
13th Sep 2020, 10:27 AM
OfcourseitsRohit
OfcourseitsRohit - avatar
+ 4
Sami Yemane de nada😂
13th Sep 2020, 10:44 AM
OfcourseitsRohit
OfcourseitsRohit - avatar
+ 2
Can you provide the code in dis?
13th Sep 2020, 10:11 AM
OfcourseitsRohit
OfcourseitsRohit - avatar
+ 1
Thank you mr mornigstar
13th Sep 2020, 10:41 AM
Sami Yemane
Sami Yemane - avatar
0
I just posted the code it is a little bitt too long but it is well commented
13th Sep 2020, 10:17 AM
Sami Yemane
Sami Yemane - avatar