function PrintAll(...args) {
console.log(arguments);
console.log(arguments[0]);
}
PrintAll(1, 2, 3, 4);
PrintAll('a', 'b', 'c', 'd', 'e');
/*
run:
[Arguments] { '0': 1, '1': 2, '2': 3, '3': 4 }
1
[Arguments] { '0': 'a', '1': 'b', '2': 'c', '3': 'd', '4': 'e' }
a
*/