QP School
JavaScript - Join three 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 three arrays with concat() (/showthread.php?tid=4091)



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

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

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

const arr3 =
      [
        "Robin"
      ];

const children = arr1.concat(arr2, arr3);

document.write(children);