0

Why console write "body.appendChiled is not a function", but I declarated body how varieble & Created element by createElement?

2nd Apr 2021, 6:22 PM
Максим Кузнецов
Максим Кузнецов - avatar
8 Answers
2nd Apr 2021, 6:48 PM
ACADEMIC
ACADEMIC - avatar
+ 2
https://code.sololearn.com/W8Uxr6wKTh9d/?ref=app
3rd Apr 2021, 1:41 AM
Calviղ
Calviղ - avatar
+ 1
Thank you very much)
2nd Apr 2021, 6:50 PM
Максим Кузнецов
Максим Кузнецов - avatar
0
Can you explain your question a little bit more or share the code
2nd Apr 2021, 6:29 PM
ACADEMIC
ACADEMIC - avatar
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);"
2nd Apr 2021, 6:37 PM
Максим Кузнецов
Максим Кузнецов - avatar
0
Console write:"body.appendChild is not a function"
2nd Apr 2021, 6:38 PM
Максим Кузнецов
Максим Кузнецов - avatar
0
Random period time i wrote, by i can't write it here now, becouse i write by mobile)
2nd Apr 2021, 6:39 PM
Максим Кузнецов
Максим Кузнецов - avatar
0
👍, thanks
3rd Apr 2021, 7:25 AM
Максим Кузнецов
Максим Кузнецов - avatar