I want the event only fired when I click the div itself, the problem is it will also fired when I click the button, which is not what I want. What should I do?
document.querySelector('.container').addEventListener('click', e => {
    console.log('click div');
});<div class="container" >
    <button>Click me</button>
</div> 
     
     
     
     
     
    