---
title: "Discussion on \"Spread vs Rest Operators in JavaScript: Expanding & Collecting Values\" | Hashnode"
description: "Discussion on \"Spread vs Rest Operators in JavaScript: Expanding & Collecting Values\". JavaScript has a nifty syntax — three little dots (...) — that does two completely opposite things depending on where you use it. In one context it expands values outward. In another, it collects valu"
url: "https://hashnode.com/posts/spread-vs-rest-operators-in-javascript-expanding-collecting-values/6a000ebce3eebc2e20314f88"
---

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

Discussion

# [Spread vs Rest Operators in JavaScript: Expanding & Collecting Values](https://mahi-07.hashnode.dev/spread-vs-rest-operators-in-javascript-expanding-collecting-values?utm_source=hashnode&utm_medium=feed)

JavaScript has a nifty syntax — three little dots (...) — that does two completely opposite things depending on where you use it. In one context it expands values outward. In another, it collects valu

May 10 · 5 min read · mahi-07.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)
-   [#spread-operator](https://hashnode.com/tag/spread-operator)
-   [#js](https://hashnode.com/tag/js)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[Mahesh Sahu](https://hashnode.com/@mahi0702)

@mahi0702

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
