Countdown to setInterval

use setInterval to implement multiple countdown. The code is as follows:

//responseDatatimeLeft
var groupOn = responseData.groupOn
for (let i = 0; i < 2; iPP) {
    var timeLeft = groupOn[i].timeLeft
    setInterval(() => {
        timeLeft--
        console.log(timeLeft)
    }, 1000)
    // setInterval(function (timeLeft) {
    //     timeLeft--
    //     // console.log(timeLeft)
    // }, 1000, timeLeft)
}

the effect I want is that setInterval prints two timeLeft, per second, for example, if the initial values of two timeLeft are 10 and 20 respectively, then print once per second, the value decreases, the first method prints the value of the second timeLeft, the second method prints two timeLeft, respectively, but the value decreases only once, how can I achieve the desired effect? It feels like a closure problem, but I still don"t know how to rewrite

.
Jun.10,2021

var groupOn = [{timeLeft: 10}, {timeLeft: 20}];
setInterval (function () {

for (let i = 0; i < groupOn.length; iPP) {
    var timeLeft = groupOn[i].timeLeft--;
    console.log(timeLeft);
}

}, 1000)

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3f43b-2c48a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3f43b-2c48a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?