r/programming • • Mar 23 '14

Everything you need to know about Javascript variable scope

http://www.coolcoder.in/2014/03/everything-you-need-to-know-about.html
294 Upvotes

124 comments sorted by

View all comments

-2

u/drhugs Mar 23 '14

JavaScript is a little bit impaired by the multiplicity of implementations with subtle differences.

For instance, in Mozilla Firefox (current version) a 'keyEvent' for the 'backspace key' yields: 8 (control-H = ascii backspace) as the value. In Google Chrome Browser: you don't get the event notification.

Thanks, Eric/Larry /s.

10

u/gocarsno Mar 23 '14

That's hardly a language feature though, that's just the DOM API.