While doing lessons in Codecademy, it is better to follow the spelling and sentences exactly provided/asked by the lessons just in case the SCT is looking for the exact spacing and spelling other than the correct syntax.
In this case, you also have different spellings for few occurrences of favourite versus the lesson’s favorite, it’s totally fine in real life, but just go with the lesson’s requirement in order to get it pass.