I am beginner in JavaScript, I am trying to click on a button and I have to display an alert message. My button does not interact?
My HTML is:
<body>
   <h1>Test</h1>
   <button id='b1'>Click on button</button>
</body>
My problem is on Javascript
function myFunction(){
    ???? = document.getElementById('b1');
    alert('Hello');
}
 
    