afterRender and afterNextRender

Use your arrow keys to move the dot. It's position is updated using signals and the DOM is updated on afterRender

There's another dot that you try to catch, when the coordinates of this and you dot matches, then a new random position is generated

You have touched the blue dot 0 time(s)!

Using your arrow keys, move the red dot to catch the blue one