I\'m trying to concatenate strings via for loop but i\'m receiving NaNs. What i want to achieve is to get one concatenated string Div #0, Div
for loop
NaNs
Div #0, Div
Besides the selected answer, you could do this with a forEach if you have a list of stuff to put inside those divs:
forEach
divs
let string = ''; items.forEach(item => string += ''+ item.description + '');