Why reference to this object's method works
const obj = {
hi: () => alert('hi')
}
obj.hi() // 'hi'
const myMethod = obj.hi
myMethod() // 'hi'
But reference to the event's object method does not?
const link = document.querySelector('a')
link.addEventListener('click', (e) => {
const doNotFollowLink = e.preventDefault
doNotFollowLink()
alert('this line was never reached')
})
<a href="https://google.com">Click here</a>