---
title: "Discussion on \"Rest vs Spread operator: two sides of the same coin\" | Hashnode"
description: "Discussion on \"Rest vs Spread operator: two sides of the same coin\". As mentioned in the title, the rest and the spread operator, despite being very similar, behaves very differently depending on the use case. \n\nfreeCodeCamp explanation of rest vs spread:\n\nThe main difference between rest and spread is that the rest o..."
url: "https://hashnode.com/posts/rest-vs-spread-operator-two-sides-of-the-same-coin/61daca3bcda0d0294b697ea8"
---

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

Discussion

# [Rest vs Spread operator: two sides of the same coin](https://hrishi.hashnode.dev/rest-vs-spread-operator-two-sides-of-the-same-coin?utm_source=hashnode&utm_medium=feed)

As mentioned in the title, the rest and the spread operator, despite being very similar, behaves very differently depending on the use case. freeCodeCamp explanation of rest vs spread: The main difference between rest and spread is that the rest o...

Jan 9, 2022 · 3 min read · hrishi.hashnode.dev  
Read the article

-   [#webdev](https://hashnode.com/tag/webdev)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Hrishikesh Barman](https://hashnode.com/@hrishi82)

@hrishi82 · Bangalore Urban

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

## Responses 1

Markdown supported · ⌘↵ to post

[Amit Thakur](https://hashnode.com/@CodeLord)

[Jan 10, 2022](https://hashnode.com/posts/rest-vs-spread-operator-two-sides-of-the-same-coin/61daca3bcda0d0294b697ea8/comment/61dbc86db0c3ca3df9b47881)

Good explanation 👍

[Hrishikesh Barman](https://hashnode.com/@hrishi82)

[Jan 10, 2022](https://hashnode.com/posts/rest-vs-spread-operator-two-sides-of-the-same-coin/61daca3bcda0d0294b697ea8/comment/61dbc86db0c3ca3df9b47881#reply-61dbe2dcb0c3ca3df9b47f2a)

Thank you for reading! 😊
