codecamp

Javascript 字符串操作综合训练

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");
JavaScript 使用中括号索引查找字符串中的第N个到最后一个字符
Javascript 数组操作
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定