Why is my coding different colors, even though I am doing what the example says?


Here is my code



That link takes everyone to their own version of the exercise.

Are you getting an error or just wondering about the way the editor is highlighting the various parts of your code?


Most modern code editors use something called syntax highlighting, which is probably what you're seeing.

    Syntax highlighting:
  • Makes your code easier to read
  • Makes your code look (a lot) nicer.
  • Does not affect the code or the way it works.

Syntax highlighting doesn't affect your code, or change anything at all apart from the look of the code, so you shouldn't worry about it.