7) How to work with rectangles inside canvas?

We have three methods for that fillRect, strokeRect and clearRect.