CONCATENAÇÃO

PHOTO EMBED

Sat May 06 2023 11:14:44 GMT+0000 (Coordinated Universal Time)

Saved by @Claudio #undefined

<!DOCTYPE html>
<html>
<body>
​
<h1>JavaScript Arrays</h1>
<h2>The concat() Method</h2>
​
<p>The concat() method concatenates (joins) two or more arrays:</p>
​
<p id="demo"></p>
​
<script>
const arr1 = ["Cecilie", "Lone"];
const arr2 = ["Emil", "Tobias", "Linus"];
​
const children = arr1.concat(arr2); 
document.getElementById("demo").innerHTML = children;
</script>
​
</body>
</html>
​
content_copyCOPY

https://www.w3schools.com/jsref/tryit.asp?filename