Basic JavaScript - Word Blanks

Someone help me with this please. I can’t simply get this right. I don’t know why

const wordBlanks= "myNoun + myAdjective + my Verb + myAdverb;

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

// Only change code below this line

const wordBlanks = myNoun  + myAdjective +  myVerb +  myAdverb;

Your browser information:

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

Challenge: Basic JavaScript - Word Blanks

Link to the challenge:

Add the following to the end of your code:


And then look in the console pane to see the string you are creating.


If you use console.log(wordBlanks) as @bbsmooth said, you’ll see this printed in the console.


If you need to add spaces, you can try adding these changes:

const space = " ";

const wordBlanks = myNoun  + space + myAdjective + space +  myVerb + space +  myAdverb;

You should get this.

“dog big ran quickly”

Not very efficient, but it’ll add spaces between your words which is what the challenge is for.

You’ll see in the challenge example, they add blanks right in the string, e.g., "It was really ".

See the space after the word “really”?

Good luck!

1 Like

Hey @marklchaves, I know you are new here, FYI, we try not to give code solutions in here.

1 Like

Thank you so much! Stuck for so long… tried so many different things

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