QP School

Full Version: JavaScript - Join three 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 arr3 =
      [
        "Robin"
      ];

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

document.write(children);