Discuss / JavaScript / 作业

作业

Topic source

年轮与灯

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

求积:

    return arr.reduce((x , y) => (x * y));

string2int:

    return s * 1;

规范名字:

    return arr.map(s => s[0].toUpperCase() + s.substring(1).toLowerCase());

小明:

    r = arr.map(Number);


  • 1

Reply