Discuss
/
JavaScript
/
交作业
交作业
Topic sourcereturn s.split("").map(function(x) { return x 1; }).reduce(function(x, y) { return 10 x + y; });
- 1
return s.split("").map(function(x) { return x 1; }).reduce(function(x, y) { return 10 x + y; });
sepiggy
return arr.reduce(function(x, y){ return x * y; });