<div id="test">
<span>문장1</span>
<p>문장2</p>
</div>
<script>
const myDiv = document.getElementById('mydiv');
test.addEventListener('click',function(e){
console.log('currentTarget : ',e.currentTarget.tagName)
console.log('target : ',e.target.tagName)
});
</script>