Discuss / JavaScript / 练习

练习

Topic source

东程11017

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

//练习(1) return s.split('').map( x => +x ).reduce( (x, y) => x * 10 + y );

//练习(2) return arr.map( x => x.substring(0,1).toUpperCase() + x.substring(1).toLowerCase() );

//帮小明找错 r = arr.map( x => parseInt(x));

东程11017

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

//这个是练习(1) 弄错了 - -! return arr.reduce( (x, y) => x * y);


  • 1

Reply