Ever encountered an error of the sort? Cannot read property 'colour' of undefined In this case, you probably expected an object, yourObjectName to have a colour property. So you went ahead to make use of it this way: if (yourObjectName.colour === 'bl...
·