JavaScript Easy Solution | Beats 100% Faster | Beginner's Friendly :)
Code\njavascript []\nconst cancellable = function(fn, args, t) {\n    fn(...args);\n    let timer = setInterval(() => fn(...args), t);\n\n    let cancelFn = () 
# Code\n```javascript []\nconst cancellable = function(fn, args, t) {\n    fn(...args);\n    let timer = setInterval(() => fn(...args), t);\n\n    let cancelFn = () => clearInterval(timer);\n    return cancelFn;\n};\n\n\n```
['JavaScript']