Word Blanks What else I have to do?

Tell us what’s happening:
What else I have to do?

Your code so far

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  var result = "";
  // Your code below this line
  
var sentence = "I saw a" + "dog" + ",that was really" + "big" + "and" + "ran" + "quickly";
  // Your code above this line
  return result;
}

// Change the words here to test your function
wordBlanks("dog", "big", "ran", "quickly");

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0.

Link to the challenge:
https://www.freecodecamp.org/challenges/word-blanks

You can concatenate the value in a variable into a string

let dogName = "Rudolph";
let sentence = "My dogs name is " + dogName;
// "My dogs name is Rudolph"

You are not doing that in your function. Also notice how I left a space after the word “is”. Concatenation does not take into account space for you, it only joins strings together, your string as it is does not have spaces between the words.

1 Like