Witch way i can iterate this array of objects??? Its possible? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Witch way i can iterate this array of objects??? Its possible?

Create menu https://code.sololearn.com/WqMc1R8gLGY2/?ref=app

12th May 2021, 9:11 PM
Olka Berkovich
Olka Berkovich - avatar
3 Answers
0
Olka Berkovich First thing there is difference between Witch and Which. So please correct your question. 2nd thing there are 2 table so you can't do table.appendChild(tr); because of document.getElementsByTag("table"); You have to do it like table[0]. appendChild (tr) and table[1]. appendChild (tr). To avoid this problem create dynamic table and append data like I did here https://code.sololearn.com/WukyJrQnri2e/?ref=app
13th May 2021, 12:12 PM
A͢J
A͢J - avatar
+ 1
Thank you very much!
13th May 2021, 12:50 PM
Olka Berkovich
Olka Berkovich - avatar
0
https://code.sololearn.com/WwUIf33W435j/?ref=app Here i try decide this, its work but wrong, if you can help me
13th May 2021, 9:30 PM
Olka Berkovich
Olka Berkovich - avatar