f = (a ,b) => a+b;
console.log(f(1,2,3,4));
f = (...arr) => arr;
console.log(f(0,1,2,3,4,5,6,7,8));
console.log(...[1,2,3,4]);
f = (a,b, ... arr) => `${a},${b},000000*****************,${arr}`
console.log(f(1,2,3,4,5,6,7,8));
f = (a,b,...arr) => `您好${arr}`
console.log(f(1,2,3,4,5,6,7,8));
const list = ["笔记本电脑","小米手机","佳能相机"];
f = (...items) => items.map(item => `<li>${item}</li>`);
console.log(f(...list));