Might I also recommend Keith Houston's wonderful book "Shady Characters: The Secret Life of Punctuation, Symbols, & Other Typographical Marks": https://shadycharacters.co.uk/books/shady-characters-the-boo... He…
Relevant discussion on perl5-porters: http://www.nntp.perl.org/group/perl.perl5.porters/2012/10/ms...
The behaviour is due to the fact that variables in JavaScript are scoped to the function, although as that code is in the global scope and lacks a var declaration it will live under the global object (window in this…
Might I also recommend Keith Houston's wonderful book "Shady Characters: The Secret Life of Punctuation, Symbols, & Other Typographical Marks": https://shadycharacters.co.uk/books/shady-characters-the-boo... He…
Relevant discussion on perl5-porters: http://www.nntp.perl.org/group/perl.perl5.porters/2012/10/ms...
The behaviour is due to the fact that variables in JavaScript are scoped to the function, although as that code is in the global scope and lacks a var declaration it will live under the global object (window in this…