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
8 Answers
+ 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.
+ 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
+ 1
Can you send your code?
0
yes
0
can i send you my code on your gmail account
0
bro??
0
thanks
0
but what is the purpose of using document.body instead of document.write