<b class='number'>15</b>
<b class='number'>2</b>
<b class='number'>8</b>
const numbers = [...document.querySelectorAll(".number")];
const summ = numbers.reduce((acc, arr) => acc + (+arr.innerHTML), 0);

console.log(summ);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.