Prunedge interview question

Question was on JavaScript event listeners