---
title: "Discussion on \"Spread vs Rest Operators in JavaScript\" | Hashnode"
description: "Discussion on \"Spread vs Rest Operators in JavaScript\". What spread operator does\nIn JavaScript, the spread operator (...) is used to expand (spread out) elements of an array, object, or iterable into individual elements.\n🔹 Basic Idea\n👉 It “unpacks” valu"
url: "https://hashnode.com/posts/spread-vs-rest-operators-in-javascript/69c6b7677cf270651027b116"
---

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

Discussion

# [Spread vs Rest Operators in JavaScript](https://hitakshi120.hashnode.dev/spread-vs-rest-operators-in-javascript?utm_source=hashnode&utm_medium=feed)

What spread operator does In JavaScript, the spread operator (...) is used to expand (spread out) elements of an array, object, or iterable into individual elements. 🔹 Basic Idea 👉 It “unpacks” valu

Mar 27 · 8 min read · hitakshi120.hashnode.dev  
Read the article

-   [#spread-in-js](https://hashnode.com/tag/spread-in-js)
-   [#rest-in-js](https://hashnode.com/tag/rest-in-js)
-   [#chaicode-webdev-cohort-2026](https://hashnode.com/tag/chaicode-webdev-cohort-2026)

## Written by

[Hitakshi](https://hashnode.com/@hitakshi)

@hitakshi

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
