0
document.getElementById("bouton")
  .addEventListener("click", function (e) {
    alert("Evènement : " + 
      e.type + 
      "   texte de la cible : " + 
      e.target.textContent);});

What mean this (e) in js ?

KooiInc
  • 119,216
  • 31
  • 141
  • 177
  • 2
    Information about the event been sent to your callback. But it doesn't have to be `e`, it could be `x`, `y`, `event`, `info`.. etc – Keith May 28 '23 at 11:58
  • 1
    In addition to @Keith's comment: have a look at [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Event) – KooiInc May 28 '23 at 12:01

0 Answers0