---
title: "Discussion on \"Spread vs Rest Operators in JavaScript\" | Hashnode"
description: "Discussion on \"Spread vs Rest Operators in JavaScript\". In JavaScript, the spread operator (...) expands values (breaks them apart), while the rest operator (...) collects values (packs them together). They look identical but behave oppositely depending on"
url: "https://hashnode.com/posts/spread-vs-rest-operators-in-javascript/69ee0b533d6a492cddfe8e61"
---

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

Discussion

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

In JavaScript, the spread operator (...) expands values (breaks them apart), while the rest operator (...) collects values (packs them together). They look identical but behave oppositely depending on

Apr 26 · 5 min read · javascript-insights-by-rohit.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaicode-webdev-cohort-2026](https://hashnode.com/tag/chaicode-webdev-cohort-2026)
-   [#spread-operator](https://hashnode.com/tag/spread-operator)
-   [#javascript-spread-vs-rest-operator](https://hashnode.com/tag/javascript-spread-vs-rest-operator)

## Written by

[Rohit Ingale](https://hashnode.com/@rohit0667)

@rohit0667

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
