So I tried fixing that by typing:
console.log(‘Order:’ + crustType + ‘pizza topped with’ + topping);
Made the crustType orange so I figured this would be correct. Yet this was what gave the error in the console.
Now I got a instruction error in a later on excersices. Couldn’t quite figure it out so I pressed the ‘get code’ button and now I got:
console.log('Order: ’ + crustType + 'pizza topped with ’ + topping);
Only difference with my code is an extra whitespace between Order: and ', and between with and '. So did I have to include the whitespace or ???
Thanks for the help! Much appreciated!
But I see that it switches between using a whitespace and not using a whitespace like here:
console.log('The temperature is ’ + getFahrenheit(15) + ‘°F’);
So when is the use of whitespace correct, and when not?
It depends on the instructions really. Outside of Codecademy, you’ll be free to output things as you please, white space or not. In this case I guess they expect you to output “The temperature is 15°F” because why not. It might have been 15 °F. That makes no difference, they just want you to write it as instructed.
You’ll get used to it
What I’m really saying is, don’t focus too much on this white space stuff (it’s not a coding issue). The exercise needs to find a match between the instruction and what you’ve written, in order to validate the exercise. Hence the trouble you’re having.