If you have the following HTML and JavaScript, what will be displayed when you click on the button?
<button id="myButton">Click me</button>
document.getElementById("myButton").onclick = function() {
console.log("Button pressed");
};
If you have the following HTML and JavaScript, what will be displayed when you click on the button?
<button id="myButton">Click me</button>
document.getElementById("myButton").onclick = function() {
console.log("Button pressed");
};