title: I'm trying to call event but my Visual Code say ("event is deprecated ts(6385)")
body: <p>I'm studying Javascript using Visual Code and every time a similar exercise that uses 'event' (the event shows in the code with the strikethrough like e̶v̶e̶n̶t̶) appears I can't complete it because of this annoying issue. In the description pop up a warning showing the issue (&quot;event is deprecated ts(6385)&quot;). I look out in the forums and stack over flow but I can not find any answer for this problem, only a few places says the lib dom and @deprecated, but I don't what to do.</p>
  <p>Please, any way to help and learn to pass this problem out will be very useful.</p>
  <pre><code>function sayMyFirstName(element){
      alert(&quot;My First name is...&quot; + element.value)
  
  }
  
  function sayMyLastName(){
      console.log(event)
  
  }
  </code></pre>