Consider this program:
(function(x){ delete x; return x; })(1);
What is the conclusion?
This is, as I expected, 1 , not undefined . I thought that x purely within the scope of the function, and deleting it inside the function should make it inaccessible outside of it.
Can someone tell a little about this?
source share