---
title: "Discussion on \"Spread vs Rest Operators in JavaScript\" | Hashnode"
description: "Discussion on \"Spread vs Rest Operators in JavaScript\". what does spread Operator does\nspread meas expand , it takes something like an array or object and spread its contents out individually\nconst arr = [1, 2, 3];\n\nconsole.log(...arr);\n\noutput:\n1 2 3 \n\nyo"
url: "https://hashnode.com/posts/spread-vs-rest-operators-in-javascript/69e636cd1faed8cd14b15c2b"
---

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

Discussion

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

what does spread Operator does spread meas expand , it takes something like an array or object and spread its contents out individually const arr = \[1, 2, 3\]; console.log(...arr); output: 1 2 3 yo

Apr 20 · 5 min read · dushyantxcode.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#js](https://hashnode.com/tag/js)
-   [#hiteshchaudhary](https://hashnode.com/tag/hiteshchaudhary)
-   [#spread-operator](https://hashnode.com/tag/spread-operator)

## Written by

[Dushyant Pratap Singh](https://hashnode.com/@dushyantxcode)

@dushyantxcode

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

Documenting My Journey From Beginner to Job Ready Web Developer

CS student focused on backend &amp; OS fundamentals. Building real projects and sharing practical learning.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
