---
title: "Discussion on \"Spread vs Rest Operators in JavaScript\" | Hashnode"
description: "Discussion on \"Spread vs Rest Operators in JavaScript\". Spread vs rest in JavaScript: the same ... expands values in one place and collects them in another. Learn both with arrays, objects, and examples."
url: "https://hashnode.com/posts/spread-vs-rest-operators-in-js/6a8d7c1b28e550907e0259a9"
---

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

Discussion

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

Spread vs rest in JavaScript: the same ... expands values in one place and collects them in another. Learn both with arrays, objects, and examples.

Aug 25 · 7 min read · ayushjjainn.hashnode.dev  
Read the article

-   [#spread-operator](https://hashnode.com/tag/spread-operator)
-   [#rest-operator](https://hashnode.com/tag/rest-operator)
-   [#spread-and-rest-operators-in-javascript](https://hashnode.com/tag/spread-and-rest-operators-in-javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#coding](https://hashnode.com/tag/coding)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Ayush Jain](https://hashnode.com/@ayushjjainn)

@ayushjjainn · Jaipur, RJ

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

Building cool things for the internet

I like making things with code. This is where I share my projects and the bugs I ran into.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
