1. The first to link help understand the basic concepts: https://www.runoob.com/w3cnot… 2. What about arguments

Get all arguments via arguments (automatically put all arguments to a function in an array)

Const fun () = = > {the console. The log (the arguments)} fun (3, 5, 6, 8) / /,5,6,8 [3]

3. The es6 method

RESTful

const fun = (first, two, ... remaining) => { console.log(first, two, remaining) } fun(3, 5, 6, 8) // 3 5 [6, 8]