freeCodeCamp icon indicating copy to clipboard operation
freeCodeCamp copied to clipboard

Challenge is not accepting the answer

Open re4ect opened this issue 10 years ago • 4 comments

Challenge Word Blanks

my code:

screenshot-www freecodecamp com 2016-01-16 19-11-24

I have been told I am editing code that should not be edited. But I don't see anything wrong with the code.

re4ect avatar Jan 17 '16 00:01 re4ect

Yea, the instructions in the commented code do seem confusing. In reality, the part below where it tells you to "change the words here to test your function" doesn't need to be changed at all for the solution to pass. It's just for testing arguments to the wordBlanks() function and outputting the results to the console on the left.

The bottom part should remain wordBlanks([arguments]) where [arguments] are the four strings that you want to pass to wordBlanks() to test the output. It could be any four strings you want.

Also, your solution is not correct. Your results shouldn't be outputting the variable names themselves. If you need more help, I recommend going to https://gitter.im/FreeCodeCamp/Help.

alistermada avatar Jan 17 '16 00:01 alistermada

Sorry it is not an Issue is a problem in your code.

You need use the parameters of the function (myNoun, myAdjetive, myVerb, myAdverb) to generate a string.

If you generate the string like this "myNoun, + myAdjetive, + myVerb, + myAdverb" your result string is `"myNoun, + myAdjetive, + myVerb, + myAdverb"``

You need put the parameters outside quotes "" for example result = myNoun+" "+ myAdjetive+" "+ myVerb + " "+ myAdverb; One correct solution could be:

screen shot 2016-01-17 at 00 46 05

aluzardo avatar Jan 17 '16 00:01 aluzardo

Sorry, but Issues are not for code problems. Please ask for help in Help Chat.

Thanks and Happy Coding!

SaintPeter avatar Jan 17 '16 00:01 SaintPeter

result = myNoun+" "+ myAdjetive+" "+ myVerb + " "+ myAdverb; why need +" "+ ,like this?

siguniang avatar Dec 29 '16 09:12 siguniang