<span id="count-up-number" data-value="3538">0</span>
<span id="count-up-number" data-value="29">0</span>
let elements = document.querySelectorAll('#count-up-number');
elements.forEach((element) => {
let value = parseInt(element.getAttribute("data-value"));
console.log(value);
})
const formatter = new Intl.NumberFormat('en-US');
formatter.format(12345) // "12,345"
formatter.format(123) // "123"
formatter.format(1234567) // "1,234,567"