---
title: "Discussion on \"Spread vs Rest Operators in JavaScript\" | Hashnode"
description: "Discussion on \"Spread vs Rest Operators in JavaScript\". Same syntax...completely different behavior depending on where you use it. That's what confused me about these two for the longest time. I'd see...in one place doing one thing and ... somewhere else d"
url: "https://hashnode.com/posts/spread-vs-rest-operators-in-javascript/6a00942fe3eebc2e208ab3c0"
---

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

Discussion

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

Same syntax...completely different behavior depending on where you use it. That's what confused me about these two for the longest time. I'd see...in one place doing one thing and ... somewhere else d

May 10 · 5 min read · hustlecoderankur.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)
-   [#chaicode-webdev-cohort-2026](https://hashnode.com/tag/chaicode-webdev-cohort-2026)
-   [#chaicohort](https://hashnode.com/tag/chaicohort)
-   [#chai-code](https://hashnode.com/tag/chai-code)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#spread-operator](https://hashnode.com/tag/spread-operator)

## Written by

[Ankur Kumawat](https://hashnode.com/@ankurxdev)

@ankurxdev

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
