const invokeMe = () => console.log('I live here outside the scope'); const alsoInvokeMe = () => console.log('I also live outside the scope'); element.addEventListener('event',() => { invokeMe(); alsoInvokeMe(); });