// html part <button id="btn" onclick="alet()"></button> // js part let btn = document.getElemntById("btn") function alet() { alert("Hello the world") }