Discuss / JavaScript / 测试题目

测试题目

Topic source

ixtf

#1 Created at ... [Delete] [Delete and Lock User]
return Array.prototype.map.call(s,function(c){return c*1;}).reduce(function(x,y){return x*10+y});
return arr.map(function(s){
s=s.toLowerCase(s);
return s.substring(0,1).toUpperCase()+s.substring(1)
});

Armyja

#2 Created at ... [Delete] [Delete and Lock User]

照你的代码,第二题只用一行:

return s*1;

完事~


  • 1

Reply