I encountered an error code while working with AngularJS to create a countdown timer. Can someone please assist me?
//Rounding the remainders obtained above to the nearest whole number
intervalinsecond = (intervalinsecond < 10) ? "0" + intervalinsecond : intervalinsecond;
intervalinminute = (intervalinminute < 10) ? "0" + intervalinminute : intervalinminute;
intervalinhour = (intervalinhour < 10) ? "0" + intervalinhour : intervalinhour;
//Displaying the calculated values in the designated HTML table tags by ID
document.getElementById("days").textContent = intervalinday;
document.getElementById("days").innerText = intervalinday;
document.getElementById("hours").textContent = intervalinhour;
document.getElementById("hours").innerText = intervalinhour;
document.getElementById("minutes").textContent = intervalinminute;
document.getElementById("minutes").innerText = intervalinminute;
document.getElementById("seconds").textContent = intervalinsecond;
document.getElementById("seconds").innerText = intervalinsecond;