let button = document.querySelector(".btn");
button.addEventListener("click", function() {
console.log("click! 🎉")
});
var myFunc = function() {
console.log("click! 🎉")
}
button.addEventListener("click", myFunc);
Examples #1 and #2 do the same thing.