0

how to solve this type of error while using J.S with html

while displaying the values of arrary elements it shows as output= ABCD undefined

11th Sep 2019, 9:12 AM
Shoaib Laghari
Shoaib Laghari - avatar
8 Respostas
+ 4
Share the code here.. https://code.sololearn.com/WA0cnsq4f2Zq/?ref=app Remember do not use document.write to update DOM, use document.body or other dom methods instead, eg. getQuerySelector.
11th Sep 2019, 10:00 AM
Calviղ
Calviղ - avatar
+ 2
You should've saved the code in your profile then attach the code link in your question's Description. You can see how you do that in the following post - if you're using the SoloLearn mobile app. You can't open the link using web browser. https://www.sololearn.com/post/74857/?ref=app
11th Sep 2019, 9:51 AM
Ipang
+ 1
Can you send your code?
11th Sep 2019, 9:23 AM
KfirWe
KfirWe - avatar
0
yes
11th Sep 2019, 9:24 AM
Shoaib Laghari
Shoaib Laghari - avatar
0
can i send you my code on your gmail account
11th Sep 2019, 9:24 AM
Shoaib Laghari
Shoaib Laghari - avatar
0
bro??
11th Sep 2019, 9:27 AM
Shoaib Laghari
Shoaib Laghari - avatar
0
thanks
11th Sep 2019, 10:05 AM
Shoaib Laghari
Shoaib Laghari - avatar
0
but what is the purpose of using document.body instead of document.write
11th Sep 2019, 10:05 AM
Shoaib Laghari
Shoaib Laghari - avatar