title: keyboard EventListener in javascript
body: <p>can anyone explain me how the argument e is captured and passed as a function callback which displays the keyboardEvent Object in console.
  Same this can be acheived by using  </p>
  
  <pre><code>() =&gt; console.log(event);
  </code></pre>
  
  <p>so why do we do like this</p>
  
  <pre><code> (e) =&gt; console.log(e);
  </code></pre>
  
  <pre><code>document.addEventListener("keydown", e =&gt; {
  console.log("key Pressed");
  console.log(e);
  });
  </code></pre>