const array1 = ["elemento 1","elemento 2","elemento 3"]; const array2 = ["elemento 4","elemento 5","elemento 6", ...array1]; console.log(array2); const fullname = { fname: "sarfraz". lname: "sheth" } const miembros = { miembro1: "alguien", ...fullname } console.log(miembros)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter