---
title: "Discussion on \"Rest and Spread Operators in JavaScript\" | Hashnode"
description: "Discussion on \"Rest and Spread Operators in JavaScript\". In JavaScript, three consecutive dots (...) can represent either the spread operator or the rest operator. The distinction lies entirely in the context of how we use them. Spread expands values out, w"
url: "https://hashnode.com/posts/rest-and-spread-operators-in-javascript/69f42c09909e64ad0774b92e"
---

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

Discussion

# [Rest and Spread Operators in JavaScript](https://srujanee-chaicode-webdev-blogs.hashnode.dev/rest-and-spread-operators-in-javascript?utm_source=hashnode&utm_medium=feed)

In JavaScript, three consecutive dots (...) can represent either the spread operator or the rest operator. The distinction lies entirely in the context of how we use them. Spread expands values out, w

May 1 · 5 min read · srujanee-chaicode-webdev-blogs.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaicode-webdev-cohort-2026](https://hashnode.com/tag/chaicode-webdev-cohort-2026)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#spread-and-rest-operators-in-javascript](https://hashnode.com/tag/spread-and-rest-operators-in-javascript)

## Written by

[Srujanee Nayak](https://hashnode.com/@srujanee20)

@srujanee20

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
