---
title: "Discussion on \"Spread vs Rest Operators in JavaScript\" | Hashnode"
description: "Discussion on \"Spread vs Rest Operators in JavaScript\". Introduction\nIn modern JavaScript (ES6), we often use ... — but it can behave in two completely different ways:\n👉 Spread Operator (expands values)\n👉 Rest Operator (collects values)\nEven though they"
url: "https://hashnode.com/posts/spread-vs-rest-operators-in-javascript/69c49a1110e664c5da27169b"
---

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

Discussion

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

Introduction In modern JavaScript (ES6), we often use ... — but it can behave in two completely different ways: 👉 Spread Operator (expands values) 👉 Rest Operator (collects values) Even though they

Mar 26 · 4 min read · spread-vs-rest-operator.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#spread-operator](https://hashnode.com/tag/spread-operator)
-   [#rest-operator](https://hashnode.com/tag/rest-operator)
-   [#es6](https://hashnode.com/tag/es6)
-   [#modern-javascript](https://hashnode.com/tag/modern-javascript)

## Written by

[Babita Kumari](https://hashnode.com/@babitakumari)

@babitakumari

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

Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
