I defined the following function in a chrome developer console-
let splitNumber=function(num){
let arr=[];
arr=num.toString().split("");
return arr};
Then I tried to delete this function from the console scope using this command -
delete window.splitNumber
> true
Now if I try to use the same variable 'splitNumber' again in the console, I get this error -
Uncaught SyntaxError: Identifier 'splitNumber' has already been declared
Can someone please help me understand what I am doing wrong here? Please let me know if the question is not clear.