Trying to combine the number values from multiple divs.
Sometimes the amount of divs can be 1 and sometimes the amount of divs could be 500.
Trying to find a way to combine all of the number values into an out-put of a "combined total"
function addNums() {
var sum = ('.item-price' + '.item-price');
}
document.getElementById('total').innerHTML = addNums;
<div class="item-price">$84</div>
<div class="item-price">$8</div>
<div class="item-price">$14</div>
<div class="item-price">$66</div>
<div class="item-price">$22</div>
<div class="item-price">$34</div>
<div class="item-price">$16</div>
<div class="item-price">$6</div>
<div class="item-price">$14</div>
<div class="item-total">Total:
<span id="total" class="total" ></span>
</div>