Nieuws

The concat() method of {{jsxref("Array")}} instances is used to merge two or more arrays. This method does not change the existing arrays, but instead returns a new array.
console.log(lista1); // Saída: [1, 2, 3] (a lista original não mudou) console.log(lista2); // Saída: [4, 5, 6] (a lista original não mudou) console.log("Lista de ...