+ 2

In what scenario are programs like this useful?

let newArr = ['Three', 'Four']; let arr = ['One', 'Two', ...newArr, 'Five']; console.log(arr);

8th Jul 2019, 11:56 AM
Mofetoluwa Balogun
Mofetoluwa Balogun - avatar
1 Answer
+ 2
Infinite situations, like you made a list of usernames but you want someusers shown not at the last but between of other array values.
8th Jul 2019, 12:03 PM
Aykut Saraç
Aykut Saraç - avatar