Computer scienceProgramming languagesJavaScriptInteraction with a browserDOM Events

The "addEventListener" method

Theory

keydown

Report a typo

Write the missing part of the code so that the keydown event handler appears. Apply the method to register the event handler to the document object.

???, function() {
  return "The keydown event has occurred";
});

There's no need to rewrite the whole code. In the answer box, enter the missing part of code.

Enter a short text
___

Create a free account to access the full topic