为什么一直过不去
Challenge Word Blanks has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
var result = "";
// Your code below this line
result=myNoun + myAdjective + myVerb + myAdverb + " ";
// Your code above this line
return result;
}
// Change the words here to test your function
wordBlanks("dog ", " big", " ran", " quickly");
wordBlanks("cat ", " little", " hit", " slowly");
result=myAdjective+' '+myNoun+' '+myVerb+' '+myAdverb; 应该包含所有传入的单词并且单词之间要有间隔,
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 "); wordBlanks(" cat", " little", " hit", " slowly");
在运行结果里看下你的输出是什么,和要求的有什么不同。
Somebody may wirte the correct code but it couldn't run pass. Try to reload page , then reset and input the code .
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");
wordBlanks("cat","little","hit","slowly");
我把楼上两位的都复制运行了,还是不行.
下一关的代码能过这一关;wordBlanks传入的参数里字符串不带空格;
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");
wordBlanks("cat","little","hit","slowly");