microtrain / bootcamp

Courseware for MicroTrain's Dev Bootcamp
17 stars 39 forks source link

Missing comma at the end of drawRectangle #1

Closed JeBuSBrian closed 5 years ago

JeBuSBrian commented 5 years ago

In the Refactoring section, the code should have a comma at the end.

drawRect: function(x,y,h,w) {

  //Start by using random fill colors.
  ctx.fillStyle = '#'+Math.floor(Math.random()*16777215).toString(16);

  ctx.fillRect (x1,y1,(x2-x1),(y2-y1));

},