We help students join any of the following scholarship programs provided by the ministry of education by completing their registration,

It seems you are trying to format the number using toLocaleString() directly inside the range slider handler. Let's walk through it step-by-step and ensure the correct event and format handling. Fixed JavaScript Code: Here is the corrected version: javascript Copy code document.getElementById("light--to-dark-button")?.classList.remove("dark--mode"); const range = document.getElementById('range'); const rangeV = document.getElementById('rangeV'); const setValue = () => { const newValue = Number((range.value - range.min) * 100 / (range.max - range.min)); const newPosition = 10 - (newValue * 0.2); // Format range.value using toLocaleString() const formattedValue = parseInt(range.value).toLocaleString(); rangeV.innerHTML = `${formattedValue}`; rangeV.style.left = `calc(${newValue}% + (${newPosition}px))`; }; // Ensure the function works when the page loads and during input changes document.addEventListener("DOMContentLoaded", setValue); range.addEventListener('input', setValue);