//练习(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));
//这个是练习(1) 弄错了 - -! return arr.reduce( (x, y) => x * y);
Sign in to make a reply
东程11017
//练习(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));