Why does my button calls a function before I click on it?

javascript click button by id
javascript click button by class
addeventlistener
jquery button click
button onclick
javascript click event
how to call javascript function on button click in html
javascript click button programmatically