I think you're right... in the case of an anonymous function, the function itself would be in memory too.
Then in that case, it's probably just easier to set up cron in general 😝
I need to schedule a function one time in a a certain future. I use this:
var timeout=setTimeout(function(){
function();
console.log("UNO");
}, 10000);
clearTimeout(timeout);
But I read in the console the value "UNO" immediatly, and not after 10000 ms. Anyone can help me and suggest me how can I resolve this problem?