Skip to content

Instantly share code, notes, and snippets.

@ilyasozkurt
Created February 22, 2023 15:56
Show Gist options
  • Save ilyasozkurt/6bc1a64c749b2a0c72e969de77ea6390 to your computer and use it in GitHub Desktop.
Save ilyasozkurt/6bc1a64c749b2a0c72e969de77ea6390 to your computer and use it in GitHub Desktop.
let arr = [1, 2, 3];
let newElements = [4, 5, 6];
arr = arr.concat(newElements);
console.log(arr); // [1, 2, 3, 4, 5, 6]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment