I have an array containing 4 items, and I want each of these items to display in its own div.
<div id="chord-box"></div>
<div id="chord-box"></div>
<div id="chord-box"></div>
<div id="chord-box"></div>
const chordsArray = ['C', 'Dm', 'Em', 'F'];
const chordBox = document.getElementById('chord-box');
How do I get each array item to display in it's own div?
idmultiple times; it can only be used onceI want each of these items to display in its own div, which one belongs to which div?