题解 | #使用 arguments#
使用 arguments
https://www.nowcoder.com/practice/df84fa320cbe49d3b4a17516974b1136
知识点
eval()
arguments 不能被重新指向


function useArguments() {
// return eval(arguments.join('+')) // arguments 是伪数组 不能用方法
const argument = Array.from(arguments) // 转伪 为 真
return eval(argument.join("+"))
}
console.log(useArguments(1, 2, 3, 4));
// console.log(eval(new String('2+2')));
