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...
2 min read
·
617 views
160 views