Javascript and colours in Safari and Chrome

I played around with Javascript to do some canvas drawing, and it worked fine on Safari but not on Chrome. Not being a Javascript expert it took me quite some testing to see that a small bug of mine was the cause. Safari forgives you for not preceding the hex colour with an #, but Chrome does not. :blush:

1 Like