I'm trying to get this function cleared with the clearInterval but it's not working.
setInterval( ()=>{ funca(10,3); }, 500);
But when i use the clearInterval it doesn't stop printing the result.
Here's my code:
funca = function(a,b){console.log(a+b);}
setInterval( ()=>{ funca(10,3); }, 500);
clearInterval(funca);
It keeps printing as you can see: The code running in console
So, how can i do it?