const myNoun = “dog”;
const myAdjective = “big”;
const myVerb = “ran”;
const myAdverb = “quickly”;
// Only change code below this line
const wordBlanks = "The " + "myadjective " + "black " + "myNoun " + "myVerb " + “very” + “myAdverb.”; // Change this line
// Only change code above this line
this is the error im getting: 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 in your madlib).
pls help
You are not supposed to put quotes around the variables.
Check if your casing is correct.
It would be good if you could post a link to the challenge.
1 Like
when the quotes are removed it doesn’t work at all
Also don’t forget to put spacing between each word.
You can use console.log(wordBlanks)
the result comes out:
The myAdjective ____ myNoun myVerb ____ myAdverb.
but its still failing me
Can you post your updated code
const wordBlanks = "The " +
"myAdjective " + '____ ’ + "myNoun " + "myVerb " + '____ ’ + “myAdverb.” ;
console.log(wordBlanks)
You have to remove the quotes from the const variables in the wordBlanks
const wordBlanks = " The " + myAdjective + " text " + …
const wordBlanks = "The " +
myAdjective + ’ ____ ’ + myNoun + myVerb + ’ ____ ’ + myAdverb ;
console.log(wordBlanks)
result: The big ____ dogran ____ quickly
it still fails me
Replace the “____” with some text.
Then give me the result
but i think imma move on and do the other challenges and come back to it thanks for the help bro
have you made sure you have put spaces after and before the text("__")
I think the problem is that you have to add text after myNoun also
1 Like
thanks bro it passed
final script: const wordBlanks = "The " + myAdjective + " black " + myNoun + " surprisingly " + myVerb + " very " + myAdverb ;
console.log(wordBlanks)
1 Like
ilenia
May 13, 2022, 12:54pm
19
now you are missing spaces
redeemerkyler:
dogran
system
Closed
November 15, 2022, 9:04pm
21
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.