displaying several scripts
Just make sure to change the .getElementById's name and have those id's named and defined in your CSS. The var names also need to be different from one exercice to the next.
Using a for loop
Using a tool object
Click anywhere inside the purple square. Every time you click, you'll create a circle!
Refresh the page to erase all the squares.