填充函数
function a100(...rest) { return rest.length ? rest[0] + 100 : 100 } function a200(...rest) { return rest.length ? rest[0] + 200 : 200 } function add(...rest) { return rest[0] } console.log(a100(add(a200()))) // 300 console.log(a200(add(a100()))) // 300
以自己现在的努力程度,还没有资格和别人拼天赋