---
title: "Discussion on \"Spread vs Rest Operators in JavaScript\" | Hashnode"
description: "Discussion on \"Spread vs Rest Operators in JavaScript\". What the Spread Operator Does  \nThe spread operator (...) is used to expand values.\nIn simple words: 👉 Spread = “values ko tod dena / expand kar dena”\nExample with Array\nlet arr = [1, 2, 3];\n\nconsole"
url: "https://hashnode.com/posts/spread-vs-rest-operators-in-javascript/69dc8697be21b1bd013dc980"
---

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

Discussion

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

What the Spread Operator Does The spread operator (...) is used to expand values. In simple words: 👉 Spread = “values ko tod dena / expand kar dena” Example with Array let arr = \[1, 2, 3\]; console

Apr 13 · 3 min read · learnwithdevesh.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)
-   [#chaicohort](https://hashnode.com/tag/chaicohort)
-   [#chai-code](https://hashnode.com/tag/chai-code)
-   [#chaicode-webdev-cohort-2026](https://hashnode.com/tag/chaicode-webdev-cohort-2026)
-   [#chai](https://hashnode.com/tag/chai)
-   [#chaiaurcode-hiteshchoudhary-piyushgarg-genaicohort-genai-llm-personaprompting-geminiai-reactjs-nextjs-python-aichatbot-hashnode-promptengineering-vercel-hindienglishblog-devjourney](https://hashnode.com/tag/chaiaurcode-hiteshchoudhary-piyushgarg-genaicohort-genai-llm-personaprompting-geminiai-reactjs-nextjs-python-aichatbot-hashnode-promptengineering-vercel-hindienglishblog-devjourney)
-   [#chai-aur-code](https://hashnode.com/tag/chai-aur-code)
-   [#chainlink](https://hashnode.com/tag/chainlink)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[DEVESH BAGHEL](https://hashnode.com/@deveshbaghel)

@deveshbaghel

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

I'm SE

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
