I really don't know what else to do to get this test right. I've tried everything I could think of...still not getting the last part right. Please I need 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 = '"The + " myNoun " + is so " + myAdjective\; " +  I + " myVerb\! " Flee the scene + " myAdverb, " + once I saw it coming"'; // 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/99.0.4844.51 Safari/537.36

Challenge: Word Blanks

Link to the challenge:

Remove the single quotes. You only need the the double quotes here although they are interchangeable.

There are many ways to concatenate string and variables.

Let say you have myVar1="good" and myVar2="loving"

Example 1:

words = "GOD is so " + myVar1 + " and so " + myVar2;

Example 2:

words = myVar1 + " day to you " + myVar2 + " friend.";

You don’t put a quote on variables like myVar1 and myVar2 above. However, for literal strings you need to put quotes.

kindly check the code very well. I did not quote those variables but I quoted the strings and I use single quote so JavaScript would understand the strings and variable concatenation

I’ve gotten the solution…
"The " + myAdjective + " " + myNoun + " " + myVerb + " " + myAdverb + “.”;
Sometimes, our over-thinking skill is our problem.
Thanks

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