Why this code run infinite time. I don't understand what happened.
(function(){
console.log("Start")
function add(){
s.delete(add); //When I delete this line, everything works fine.
s.add(add);
console.count("run")
}
const s = new Set([
add
]);
s.forEach(value => {
value()
});
console.log("Finish")
})()
This is an overview code.