I don't understand where the problem are, could you help?

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


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

// Only change code below this line
const wordBlanks = 'when + myNoun + "is too" + myAdjective + ", he could have problem to" + myVerb + "in a proper and" + myAdverb + "way".'; // 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/100.0.4896.127 Safari/537.36 Edg/100.0.1185.50

Challenge: Word Blanks

Link to the challenge:

HI @0Paradox001 !

You should add a console.log at the end of your code see what the result looks like.

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

// Only change code below this line
const wordBlanks = 'when + myNoun + "is too" + myAdjective + ", he could have problem to" + myVerb + "in a proper and" + myAdverb + "way".'; // Change this line
// Only change code above this line
console.log(wordBlanks)

You should see this in the console.

The issue is that you have wrapped everything into a string, including the variables.

I would suggest reviewing this lesson very carefully on how to construct strings with variables.

Then try again with the word blanks lesson.

Hope that helps!

1 Like

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