ES6 Syntax and Feature Overview | Tania Rascia

PHOTO EMBED

Sun Oct 22 2023 21:38:27 GMT+0000 (Coordinated Universal Time)

Saved by @Spsypg #javascript

let arr1 = [1, 2, 3]
let arr2 = ['a', 'b', 'c']
let arr3 = [...arr1, ...arr2]

console.log(arr3) // [1, 2, 3, "a", "b", "c"]
content_copyCOPY

https://www.taniarascia.com/es6-syntax-and-feature-overview/