Simulating jQuery's on() method
8 Nov 2020
Following up on my recent guide to JavaScript event delegation, I thought it would be interesting to simulate jQuery's on()
method, which makes event delegation a breeze by hiding its workings, in native JS.