process.on('an event', function () {
setTimeOut(function onTimeOut() {
// ... code
}, 5000)
})
Hi friends! I have two question, please advise me.
- Will the named callback function
onTimeOutstored at Global scope and skipped by GC? - If it is stored at local scope, it will re-created every time the
eventinvoked (tagged to GC), right?