✅Clear & Easy solution || 90% efficient🔥
Approach\nseTimeout() : The setTimeout() method sets a timer which executes a function or specified piece of code once after timer expires.\nThe function is Onl
# Approach\n***seTimeout()*** : The setTimeout() method sets a timer which executes a function or specified piece of code once after timer expires.\n**The function is Only executed ONCE**\n\n***clearTimeout()*** : The clearTimeout() method cancels a timeout previously established by *setTimeout()*\n\n# Code\n```\nvar cancellable = function(fn, args, t) {\n    var timeout = setTimeout(()=> fn(...args), t);\n    return cancelFn = ()=>clearTimeout(timeout);\n};\n```
['JavaScript']