Thanks for writing this!
Gregory Tippett
1

I understand your confusion; that is not actual code but rather the type signature of the DOM EventListener interface, per the MDN documentation. It just means that an object that implements the listener interface must have a method named handleEvent which takes in an Event object as a parameter and doesn’t return anything (“void”).

Like what you read? Give Patrick Ackerman a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.