type returns the type of event.
event.type
bubbles
cancelable
composed
composedPath
currentTarget
defaultPrevented
Event
eventPhase
isTrusted
preventDefault
stopImmediatePropagation
stopPropagation
target
timeStamp
Web Hypertext Application Technology Working Group (WHATWG)