Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Deleting declared variable names, (IE11 new behavior) any specs?

$
0
0

In IE11 we are finally able to:

var foo = "foo"; bar = "bar";

delete foo; //_> true
delete bar; //_> true

foo;   //_> 'foo' is undefined
bar;   //_> 'bar' is undefined

I love it. Finally we can get rid of namespace pollution. But is this going to be a standard, or is it already because I'm not being able to find info on this.


Viewing all articles
Browse latest Browse all 3527

Trending Articles