freecodecamp.cn icon indicating copy to clipboard operation
freecodecamp.cn copied to clipboard

为什么一直过不去

Open xinyangluckily opened this issue 9 years ago • 6 comments

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");

xinyangluckily avatar Mar 10 '17 06:03 xinyangluckily

result=myAdjective+' '+myNoun+' '+myVerb+' '+myAdverb; 应该包含所有传入的单词并且单词之间要有间隔,

joe-seeing avatar Mar 14 '17 09:03 joe-seeing

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");

ShirleyTemple avatar Mar 31 '17 10:03 ShirleyTemple

在运行结果里看下你的输出是什么,和要求的有什么不同。

keller0 avatar Mar 31 '17 13:03 keller0

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");

Caiseyingzi avatar May 09 '17 03:05 Caiseyingzi

我把楼上两位的都复制运行了,还是不行.

yshuai avatar Aug 25 '18 22:08 yshuai

下一关的代码能过这一关;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");

yshuai avatar Aug 25 '18 22:08 yshuai