Do DOM events create new functions in memory or just store a reference to an event

These buttons have the same event, do 2 of these functions get created separately in memory or event just points to a static function

I am not sure how to tell if the functions that get attached are the same objects or not.

<div style="padding: 5px">
   <button id="playerOne" onclick="onClick(event)"> One </button>
   <button id="playerTwo" onclick="onClick(event)"> Two </button>
</div>