cannot read appenChild property | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

cannot read appenChild property

why in sololearn i can't get the javascript appendChild to works in my code? while the same codes works in my desktop visual studio code and codepen.io here at sololearn: https://code.sololearn.com/Wq2VQ424OurJ/?ref=app i commented out the manual div for chessgrid and here is my codepen: https://codepen.io/sobadrdb/pen/KKVJBBX they are both same javascript code. thanks

22nd Jul 2020, 8:06 PM
sobadrdb
1 Antwort
+ 5
Put the whole thing inside onload function: window.onload = function(){ // your code here }
22nd Jul 2020, 8:17 PM
Bagon
Bagon - avatar