---
title: "Discussion on \"Spread vs Rest Operators in JavaScript\" | Hashnode"
description: "Discussion on \"Spread vs Rest Operators in JavaScript\". When you see three dots ... in JavaScript, it can mean two different things depending on how it is used.\nSometimes it expands values.Sometimes it collects values.\nThese two behaviors are called the sp"
url: "https://hashnode.com/posts/spread-vs-rest-operators-in-javascript/69fc58ce3d9a9c1019906b9b"
---

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

Discussion

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

When you see three dots ... in JavaScript, it can mean two different things depending on how it is used. Sometimes it expands values.Sometimes it collects values. These two behaviors are called the sp

May 7 · 5 min read · blog.shyamhz.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)
-   [#chai-aur-javascript](https://hashnode.com/tag/chai-aur-javascript)
-   [#javascript-spread-vs-rest-operator](https://hashnode.com/tag/javascript-spread-vs-rest-operator)

## Written by

[shyamendrahazracodes](https://hashnode.com/@shyamhzdotdev)

@shyamhzdotdev

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

Just a stubborn coder

I write code , that run in the browser and someone else's machine. And sometimes I also write articles

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
