title: How can I connect my JavaScript function to the HTML button?
body: <p>I've been trying to connect my functions in a JavaScript file to a button in HTML and I can't figure out how to get them to connect after trying various things.</p>
  <p>What I need is for the alert to appear (as written in the.js file) simply from pressing the first button on the web page.</p>
  <p><a href="https://i.stack.imgur.com/Q26XM.png" rel="nofollow noreferrer">Here is my function within the class of the file</a></p>
  <p><a href="https://i.stack.imgur.com/5ZLxw.png" rel="nofollow noreferrer">And here is the latest attempt of many different ways I've tried to connect the function to the button</a></p>