As a complete Javascript novice I'm challenged by what may seem like simple concepts to the almighty javascript overlords that call Stackoverflow home.
My problem isn't really problem. When I'm doing my javascript up in my code editor down at the ghetto I'll often see stuff like this
function name(e) {
if(e.KeyCode) {
....
}
}
What does doing this accomplish? How is this different from just doing if(KeyCode)
? What's the e
all about?
Thanks :)