---
title: "Discussion on \"Spread vs Rest in JavaScript: Same Syntax, Totally Different Powers\" | Hashnode"
description: "Discussion on \"Spread vs Rest in JavaScript: Same Syntax, Totally Different Powers\". Why do developers get confused?\nIf you’ve ever seen ... in JavaScript, you probably thought:\n\n“Wait… is this spread or rest?”\n\nThe tricky part is:👉 Both spread and rest use the same syntax (...)\nBut"
url: "https://hashnode.com/posts/spread-vs-rest-in-javascript-same-syntax-totally-different-powers/69de650391716f3cfb515755"
---

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

Discussion

# [Spread vs Rest in JavaScript: Same Syntax, Totally Different Powers](https://spreadvsrestinjavascriptsamesyntaxtotallydifferentpowers.hashnode.dev/spread-vs-rest-in-javascript-same-syntax-totally-different-powers?utm_source=hashnode&utm_medium=feed)

Why do developers get confused? If you’ve ever seen ... in JavaScript, you probably thought: “Wait… is this spread or rest?” The tricky part is:👉 Both spread and rest use the same syntax (...) But

Apr 14 · 4 min read · spreadvsrestinjavascriptsamesyntaxtotallydifferentpowers.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#javascript-spread-vs-rest-operator](https://hashnode.com/tag/javascript-spread-vs-rest-operator)

## Written by

[Adarsh Pandey](https://hashnode.com/@Adarshbytes)

@Adarshbytes

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
