---
title: "Discussion on \"Frequently used array methods in JavaScript\" | Hashnode"
description: "Discussion on \"Frequently used array methods in JavaScript\". 1) concat\nconcat method will merge arrays and return a new array.\nexample\nconst arr1 = [1,2,3]\nconst arr2 = [a,b,c]\nconst ans = arr1.concat(arr2)\nconsole.log(ans) // [1,2,3,a,b,c]\n\nconcat will return a shallow copy of an existing array\nconcat can tak..."
url: "https://hashnode.com/posts/frequently-used-array-methods-in-javascript/628792b48fb776481a285386"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Frequently used array methods in JavaScript](https://patelyash.hashnode.dev/frequently-used-array-methods-in-javascript?utm_source=hashnode&utm_medium=feed)

1) concat concat method will merge arrays and return a new array. example const arr1 = \[1,2,3\] const arr2 = \[a,b,c\] const ans = arr1.concat(arr2) console.log(ans) // \[1,2,3,a,b,c\] concat will return a shallow copy of an existing array concat can tak...

May 20, 2022 · 2 min read · patelyash.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[Yash Patel](https://hashnode.com/@patelyash)

@patelyash

  
[View profile](https://hashnode.com/@patelyash)

frontend developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
