QP School

Full Version: JavaScript - Join two arrays with concat()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
const arr1 =
      [
        "Cecile",
        "Lone"
      ];

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

const children = arr1.concat(arr2);

document.write(children);