createElement() is not defined | Sololearn: Learn to code for FREE!
+ 9

createElement() is not defined

why? i write my code is VS code so i cant post it here😅😅 i heard it not just me who faces with this issue...

16th Sep 2018, 7:35 AM
Jingga Sona
Jingga Sona - avatar
7 ответов
+ 8
So perhaps post your code here instead having us guessing? also, have you used it like this? createElement(....) or like this? document.createElement(....)
16th Sep 2018, 8:34 AM
Burey
Burey - avatar
16th Sep 2018, 8:21 AM
Burey
Burey - avatar
+ 5
Still.... an actual code would be easier to debug......
16th Sep 2018, 12:10 PM
Burey
Burey - avatar
+ 2
Ben Bright its 1 years ago maybe😅 is that really matter? i tought the browser's version that......
18th Sep 2018, 12:17 PM
Jingga Sona
Jingga Sona - avatar
+ 1
Burey thanks! but i will tell you the details: 1. my code didnt need window.onload because nothing that like document.getElementById or anything before 2. i googled and i find some people have some issues like that 3. i tried the solutions and it didnt work
16th Sep 2018, 8:32 AM
Jingga Sona
Jingga Sona - avatar
+ 1
which vscode version are you running if I may ask. Because it works perfectly fine for me on version 1.27.1
16th Sep 2018, 10:36 PM
Benneth Yankey
Benneth Yankey - avatar
0
Burey i use it like this document.createElement(...) More Like this: function addItemTodo(text){ var x = document.createElement("div"); x.innerTEXT = text; document.body.appendChild(...);
16th Sep 2018, 10:47 AM
Jingga Sona
Jingga Sona - avatar