Querying the Sequence

Learn to manipulate events that occur in a sequence.

Let’s implement a simple version of that mouse stream using traditional event listeners in JavaScript. To log the x- and y-coordinates of mouse clicks, we could write something like this:

Get hands-on with 1400+ tech skills courses.