ctx.fillStyle = '#111' picks the fill color: #111 is almost black.
ctx.fillRect(x, y, width, height) fills a rectangle. 0, 0 is the top-left corner; canvas.width and
canvas.height (400 and 400) make it cover everything.
Your turn
Leave an empty line under const ctx = ..., write the two lines, then press Run.