Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
JavaScript - Join two arrays with concat()
#1
Code:
const arr1 =
      [
        "Cecile",
        "Lone"
      ];

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

const children = arr1.concat(arr2);

document.write(children);
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  JavaScript - Join three arrays with concat() Qomplainerz 0 334 04-04-2023, 07:44 AM
Last Post: Qomplainerz

Forum Jump:


Users browsing this thread: 2 Guest(s)