HTML5 Canvas Rectangles and Styles

Let’s go deeper in understanding the basic primitives and what we can do with them

Let’s draw a rectangle and fill it

To fill the element we should use these two lines

context.fillStyle = "yellow"
context.fill();