Tell us what’s happening:
Describe your issue in detail here.
I am struggling to see the error I have in my code here.
The error I get is:
" Failed:wordBlanks should contain all of the words assigned to the variables myNoun, myVerb, myAdjective and myAdverb separated by non-word characters (and any additional words of your choice)."
Your code so far
const myNoun = "dog";
const myAdjective = "big";
const myVerb = "ran";
const myAdverb = "quickly";
// Only change code below this line
const wordBlanks = "I have a " + myNoun + " And it is " + myAdjective + " yesteray it" + myVerb + " so" + myAdverb + " it fell to the ground"; // Change this line
// Only change code above this line
console.log(wordBlanks);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
You have a console.log in your code, so you should be able to see what your string value is. Check it carefully and you should see where there are problems with missing spaces.
Yes, that is not causing your code to fail. It’s the construction of the string itself which is faulty. Put the console.log back in again and have a look.
const myAdjective = "big";
const myVerb = "ran";
const myAdverb = "quickly";
// Only change code below this line
const wordBlanks = "I have a " + myNoun + " And it is " + myAdjective + " yesteray it " + myVerb + " so" + myAdverb + " it fell to the ground"; // Change this line
// Only change code above this line
console.log (wordBlanks)```
The error : " `wordBlanks` should contain all of the words assigned to the variables `myNoun` , `myVerb` , `myAdjective` and `myAdverb` separated by non-word characters (and any additional words of your choice)."