Week 6 - Task 1

Colored boxes

Functionality:

  1. When you press a box, add the color of the box to an array and output all values of the array to the output section.
  2. When you press the "clear" button, the array should be emptied.
Example of how a solution might look like: GIF