Using Arrays for an event handler

@russian-dima Thanks for this - if possible, could you explain this further? I’m not familiar with using console.