rest parameter 和 Destructuring assignment. function fun1(...theArgs) { console.log(theArgs.length);} // theArgs is an array fun1(); // 0fun1(5); // 1fun1(5, 6, 7); // 3 function f(a, b, ...theArgs) { // ...} function f(...[a, b, c]) { return a + b +…