Basic JavaScript - Word Blanks

Tell us what’s happening:

Where is the bug in this Iam unable to find it out.

###const myNoun = “dog”;
const myAdjective = “big”;
const myVerb = “ran”;
const myAdverb = “quickly”;

// Only change code below this line
const wordBlanks = “I got bit by a” + myAdjective + "sun " + myNoun +"so I " + myVerb +"away very " + myAdverb + “.”; // Change this line
// Only change code above this line

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

// Only change code below this line
const wordBlanks = "I got bit by a" + myAdjective + "sun " + myNoun +"so I " + myVerb +"away very " + myAdverb + ".";   // 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/119.0.0.0 Safari/537.36

Challenge Information:

Basic JavaScript - Word Blanks

1 Like

Hello.

Review your spaces.

As you wrote, your exit code will be:

I got bit by abigsun dogso I ranaway very quickly.

Check your code.

Greets.

1 Like

It’s a good habit to get into to use console.log() to debug your code. It’s an invaluable tool which can show you what certain functions or lines of code are outputting.
If you put console.log(wordBlanks) below the variable declaration for instance, you’ll be able to see immediately where the spacing issues are in that variable.

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