判断题
扩展运算符不能与正常的函数参数结合使用,如下使用是错误的:function f(v, w, x, y, z) { };const args = [0, 1];f(-1, ...args, 2, ...[3]);。
错误
判断题 只有函数调用时,扩展运算符才可以放在圆括号中,否则会报错。
判断题 console.log(1,...[2,3,4],5)打印为1Array5。
判断题 console.log(...[1, 2, 3])打印为1 2 3。