Question about spacing and not spacing

Tell us what’s happening:
So what im wondering is why is it important for there to be no spaces when adding in my variables. i know that they need to be there but im just curious as to why they need to be there in order for it to read correctly. what would it display had i not put them there.

Your code so far

const myNoun = "dog";
const myAdjective = "big";
const myVerb = "ran";
const myAdverb = "quickly";

// Only change code below this line
const wordBlanks = "my "+ myAdjective +" fluffy "+ myNoun +" named Charlie "+ myVerb +" so "+ myAdverb +" once."; // Change this line
// Only change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36

Challenge: Word Blanks

Link to the challenge:

Hello @IsolationEarth, just add console.log(wordBlanks) under the definition of it, and you can tell the difference. Hope this helps.

It’s the difference between
“mybigfluffydognamed Charlieransoquicklyonce.”
“my big fluffy dog named Charlie ran so quickly once.”

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.