I want to scroll to that section before the numbers start counting but I keep getting a bunch load of error messages
I tried:
Let valueDisplays = document.querySelectorAll(.num);
Let interval = 5000;
valueDisplay.forEach((valueDisplays) => {
Let startValue = 0;
Let endValue = parseInt(valueDisplays.getAttribute("data-val"))
Let count = set interval(function () {
startValue += 1;
valueDisplays.textContent = startValue;
if (startValue == endValue) {
clear interval(count);
}
}, Duration)
})