In Chrome, this fiddle prints false. However, the same code typed in the JavaScript console prints true:
a = 1;
var a = 2;
console.log(delete a);
Why do I get different results depending on whether or not I'm using the Chrome console?
In Chrome, this fiddle prints false. However, the same code typed in the JavaScript console prints true:
a = 1;
var a = 2;
console.log(delete a);
Why do I get different results depending on whether or not I'm using the Chrome console?
SyntaxError: Unexpected token ILLEGAL, Chrome (Linux)