+ 2
Why use three (...newArr) in the following. is This syntax??
let newArr = ['Three', 'Four']; let = ['One', 'Two', ...newArr, 'Five']; console.log(arr);arr
1 Resposta
+ 2
Its the spread syntax. refer to the mdn for full explanation.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax