Refer to the following code:
function displayMessage(ev) {
ev.stopPropagation();
console.log('Inner message.');
}
const elem = document.getElementById('myButton');
elem.addEventListener('click' , displayMessage);
What will the console show when the button is clicked?
Currently there are no comments in this discussion, be the first to comment!