QP School
JavaScript - Join two arrays with concat() - Printable Version

+- QP School (https://qomplainerzschool.lima-city.de)
+-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3)
+--- Forum: JavaScript Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=6)
+--- Thread: JavaScript - Join two arrays with concat() (/showthread.php?tid=4092)



JavaScript - Join two arrays with concat() - Qomplainerz - 04-04-2023

Code:
const arr1 =
      [
        "Cecile",
        "Lone"
      ];

const arr2 =
      [
        "Emil",
        "Tobias",
        "Linus"
      ];

const children = arr1.concat(arr2);

document.write(children);