Q: This is my code and its not working :(
A: hey. the first person who answered has it right - when comparing favcolor to a string in your if statements, you need to put the string in inverted commas (ie if (favcolor == 'purple'){//do this}. Otherwise, it thinks it is comparing to a variable called purple. your browser should recognise the name of most common colours, so you could actually adjust your program so that the user can type almost any colour and the background colour will change. see the code below: