0
Why console write "body.appendChiled is not a function", but I declarated body how varieble & Created element by createElement?
8 Answers
+ 2
Максим Кузнецов
Here's a working code
https://code.sololearn.com/W2Mqy0Mvyp5u/?ref=app
+ 2
https://code.sololearn.com/W8Uxr6wKTh9d/?ref=app
+ 1
Thank you very much)
0
Can you explain your question a little bit more or share the code
0
sorry, i couldn't write more. I want to create "div" after random period of time and add it in BODY. "body" - parent node. This is code
"const body=getElementByTagName('body') ;
var circle = body.createElement('div');
body.appendChild(circle);"
0
Console write:"body.appendChild is not a function"
0
Random period time i wrote, by i can't write it here now, becouse i write by mobile)
0
👍, thanks