I mean this in the best way possible, but do you like actually take your mouse over to the webpage, highlight the code, copy it, and then paste it into your editor? I am genuinely curious.
SE had a sample dummy event listener add function, complete with // do stuff here. I cut and paste the whole thing and added what I needed.
I suppose I could've retyped the addEventListener function from scratch but...I dunno, that seemed inefficient. I just needed the name.