+ 1
problem in display for loop
hey guys I have a problem that I receive just the least object in my browser but this runs true in the console! how can I resolve? https://code.sololearn.com/WeCw2bV6DwRJ/#
3 Respuestas
+ 5
when we use innerHTML="something" all content is deleted, but we can use innerHTML+="something2"
Replace in line 43 by:
document.getElementById('text').innerHTML +="<hr>" +text;
+ 3
In the last line of the for loop code block it should be += instead of =.
0
ODLNT that's right