Word Blanks Challenge == No way Through

Tell us what’s happening:
Describe your issue in detail here.
I don’t know what’s wrong with my code
have tried all possible ways! and this is the best I can conjure to get passed this challenge but its still not giving
Any tips or a different way I can get passed this?

Your code so far

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

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
let result = "My " + myNoun + "is " + myAdjective + "it " + myVerb + "very " + myAdverb + ".";
//Your code below this line

//Your code above this line
return result;

wordBlanks("dog", "big" ,"ran" , "quickly");

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36

Challenge: Word Blanks

Link to the challenge:

Hi @mulumbaandrew1 !

I would suggest reseting the lesson and not creating a function.
I think it adds more work than necessary.

I would suggest just changing this line

var wordBlanks = ""; // Change this line

and adding those four variables with spaces in the string.

I would also add console.log(wordBlanks) at the bottom of your code so you can test the output.
With your current code there are some spacing issues.


Thanks the console.log(wordBlanks) worked wonders

if you type console.log(wordBlanks("dog", "big" ,"ran" , "quickly"));, you will see in the output:

"My dogis bigit ranvery quickly."

You should be careful for the spaces between the words.

1 Like

Thank you ,it has worked

You’re welcome @mulumbaandrew1 :slight_smile:

1 Like

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