Challenge word-blanks has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
`````` js
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
var result = "";
// Your code below this line
result = myAdjective + " " + myNoun + " " + myVerb + " " + myAdverb;
// Your code above this line
return result;
}
// Change the words here to test your function
wordBlanks("dog", "big", "ran", "quickly");
```
The error :
wordBlanks("dog", "big", "ran", "quickly") should contain all of the passed in words separated by non-word characters (and any additional words in your madlib).
wordBlanks("cat", "little", "hit", "slowly") should contain all of the passed in words separated by non-word characters (and any additional words in your madlib).
``````
@AndreiConstantinesu I think this may be an issue with the editor. Try copying your code, refreshing the browser page, and then pasting it back in. Then run the tests again. Let me know if it passes.
What browser are you using @AndreiConstantinesu ?
@AndreiConstantinesu closing as stale. Feel free to comment if you're still having issues. Happy coding!
I switched noun to the beginning so that dog = noun.
And it worked!
var result = myNoun +", " + myAdjective +", " + myVerb + ", " + myAdverb + ", " ;
var result = myNoun +", " + myAdjective +", " + myVerb + ", " + myAdverb + ", " ;
Is the literal answer to _"wordBlanks should contain all of the passed in words separated by non-word characters"_. And it works. This is stupid, 30 min trying to figure out.
I think this is an editor issue.Change your browser or refresh it.Surely it will work.
var result = "";
// Your code below this line
result+= "My "+myAdjective+" "+myNoun+" "+myVerb+" very "+myAdverb+".";
ENTER
Who can describe this issue more clearly? The original is long and difficult to understand.
@thpthang Please use our forum for questions related to why your code does not pass a challenge. Thank you.
Most helpful comment
var result = myNoun +", " + myAdjective +", " + myVerb + ", " + myAdverb + ", " ;