freeCodeCamp icon indicating copy to clipboard operation
freeCodeCamp copied to clipboard

Word Blanks Instructions Are Unclear

Open eclecticeasel opened this issue 10 years ago • 6 comments

Challenge Word Blanks has an issue. User Agent is: Mozilla/5.0 (X11; CrOS x86_64 8172.47.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:


function wordBlanks(myNoun, myProNoun, myAdjective, myVerb, myAdverb) {
  var result = "";
  // Your code below this line
  result = myNoun + myProNoun + myAdjective + " little" + myVerb + " hit" + myAdverb + " slowly";

  // Your code above this line
  return result;
}

// Change the words here to test your function
wordBlanks("little", " tool", " very", " licked", " longingly");

eclecticeasel avatar Jun 19 '16 15:06 eclecticeasel

@eclecticeasel thanks for the issue but if you get stuck with a challenge, please first ask questions to the Help Room. Hint: reset your code; it appears you changed the code at the top and added an additional parameter myProNoun. Happy coding!

erictleung avatar Jun 19 '16 15:06 erictleung

This challenge is written so as to be easily confusing. You can add the non-word characters in the wordBlanks definition at the bottom and the challenge still works fine in the output and that makes the error message seem wrong.

I suggest a change to the instructions and error report so it is not so confusing. My recommendations are in brackets.

INSTRUCTIONS "You will also need to provide additional strings [in the function], which will not change, [and must be] in between [all of] the provided words."

ERROR "should contain all of the passed words [that are] separated by non-word characters [in the function](and any additional words in your madlib)."

eclecticeasel avatar Jun 19 '16 16:06 eclecticeasel

@eclecticeasel thanks for your suggestions. Looking at the challenge again, it does appear a bit confusing when first looking at it.

Here's my modification to your suggestion,

Instructions

... You will also need to use additional strings, which will not change, and must be in between all of the provided words. The output should be a complete sentence.

We have provided a framework for testing your results with different words. The tests will run your function with several different inputs to make sure all of the provided words appear in the output, as well as your extra strings.

Error Messages

...should contain all of the passed in words separated by non-word characters (and any additional words in your madlib).

erictleung avatar Jun 19 '16 16:06 erictleung

To the contributor that takes this up:

Please, check our Guidelines for Contributing and if you need any assistance reach out to the Contributors Chat room.

ghost avatar Jun 20 '16 07:06 ghost

Id like a go at this please :)

GreyhoundIt avatar Jun 20 '16 16:06 GreyhoundIt

25

siguniang avatar Dec 29 '16 10:12 siguniang