run a code every time it goes down, how can I do it?
let limit = document.querySelectorAll(".soups").length;
if(limit-1) {
console.log("number of limit dropped by 1");
}
Well first you have to store the previous limit
kinda XY. do you have code that runs that is in charge of decreasing the limit?
Обсуждают сегодня