There is a rule in JS: Never use arguments, opt to use rest syntax ... instead. Ok, let's try. I write:
let arr = [16, 'mother', 'kids'];
function concatenateAll(...arr) {
return arr.join('');
}
But the output in the console doesn't satisfy the rule. Where is my mistake?
concatenateAll(...arr)?argumentsstill works fine if you want to use it.