Challenge

Plot Points On Click

John Komarnicki

Front-End Developer | @john_komarnicki

Last Updated: November 14th, 2022

Introduction

Challenge problems are a great way to practice your problem solving skills!

To get the most of these challenges I recommend you attempt them on your own. Once you have given it a try, you can watch my solution.

Or if you're just interested in watching me code, that is fine as well!


Challenge

In this beginner challenge, you'll want to do the following

  1. Track a users click and plot a point at the clicked location.
  2. Undo a plotted point.
  3. Redo a plotted point

Bonus

If you want to take this a step further, make the plot grid responsive.

When the application viewport shrinks, the points should all be responsive to the viewport.


Solution