Let's suppose we are in the global scope:
When I declare a variable in JS:
a = 1
which I know is not the proper way (but it is not the question). I can use:
delete a (> returns true)
But when I declare:
var b = 1
I can't use:
delete b (> returns false)
Can anyone explain that behaviour?