Word Blanks - JavaScript

Word Blanks - JavaScript
0.0 0

#1

Feel like I’m going a bit crazy here - can anyone point out where I’m going wrong? I’ve read the other posts on the topic but I think I’ve followed all the advice there. Still tells me to keep trying…

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
var result = “”;
// Your code below this line
result = “The” + " " + myAdjective + " " + myNoun + " " + myVerb + " " + myAdverb + “.”;

// Your code above this line
return result;
}

// Change the words here to test your function
wordBlanks(“cat”, “little”, “hit”, “slowly”);


#2

Your code works here though.


#3

Try adding space at the end of the “The” string.


#4

Never mind. After refreshing for about the 20th time and changing nothing it suddenly started working :sweat:
Thanks for checking though!


#5

The-hyphen: I’m glad I saw your questions and this specific answer cause I was going crazy. First, trying to understand the requirements. Then, reading about it and once having the right code trying to run it and it didn’t work. But, resetting and refreshing it with the right code did it. Thank you!!!


#6

Same here! Cutting, resetting, refreshing, and pasting got my code accepted.