13/30 days JAVASCRIPT
\n# Code\n\n\nvar cancellable = function(fn, args, t) {\n   \n    var timeout = setTimeout(() =>\n        fn(...args)\n    , t)\n    var cancelFn = () => clearT
\n# Code\n```\n\nvar cancellable = function(fn, args, t) {\n   \n    var timeout = setTimeout(() =>\n        fn(...args)\n    , t)\n    var cancelFn = () => clearTimeout(timeout);\n\n    return cancelFn;\n};\n\n```
['JavaScript']