Why is it necessary to add a parameter for event handling? Like so:
document.addEventListener( 'keydown', function( e ) { var keyCode = e.keyCode } );
Why do you need the 'e' in there? why does the function need a parameter at all?
Aucun commentaire:
Enregistrer un commentaire