---
title: "Discussion on \"JS Merging arrays\" | Hashnode"
description: "Discussion on \"JS Merging arrays\". Twitter  Youtube \nhttps://www.youtube.com/watch?v=QU2Zlt_R22k\nMerging two arrays in javascript:\n\nUsing spread operator\nusing concat\n\nWhen to use what: Spread can work only when our inputs are of type arrays. concat works better in all scenarios.\n\n\nht..."
url: "https://hashnode.com/posts/js-merging-arrays/61d740cc4b84101d2c3ecd1e"
---

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

Discussion

# [JS Merging arrays](https://vkglobal.hashnode.dev/js-merging-arrays?utm_source=hashnode&utm_medium=feed)

Twitter Youtube https://www.youtube.com/watch?v=QU2Zlt\_R22k Merging two arrays in javascript: Using spread operator using concat When to use what: Spread can work only when our inputs are of type arrays. concat works better in all scenarios. ht...

Jan 6, 2022 · 1 min read · vkglobal.hashnode.dev  
Updated Jan 8, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)

## Written by

[Mahesh](https://hashnode.com/@urstrulyvishwak)

@urstrulyvishwak · India

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

Dad | Web developer

## Responses 1

Markdown supported · ⌘↵ to post

[Maneesh Kumar](https://hashnode.com/@kontactmaneesh)

[Jan 7, 2022](https://hashnode.com/posts/js-merging-arrays/61d740cc4b84101d2c3ecd1e/comment/61d7b1bf4b84101d2c3ed3cc)

Good info .
