---
title: "Discussion on \"Spread vs Rest Operator\" | Hashnode"
description: "Discussion on \"Spread vs Rest Operator\". The spread operator and rest operator are two operations that can be used for destructuring arrays and objects. The syntax used for both is an ...ellipsis followed by the iterable.\nSpread Operator\nThe spread operator is a new operator in JavaScript t..."
url: "https://hashnode.com/posts/spread-vs-rest-operator/64bc7de83e5b7d9bf47f425d"
---

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

Discussion

# [Spread vs Rest Operator](https://oluwatobicodes.hashnode.dev/spread-vs-rest-operator?utm_source=hashnode&utm_medium=feed)

The spread operator and rest operator are two operations that can be used for destructuring arrays and objects. The syntax used for both is an ...ellipsis followed by the iterable. Spread Operator The spread operator is a new operator in JavaScript t...

Jul 23, 2023 · 5 min read · oluwatobicodes.hashnode.dev  
Read the article

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

## Written by

[Odetokun Treasure](https://hashnode.com/@OluwatobiCodes)

@OluwatobiCodes · Nigeria

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

Web development

## Responses 1

Markdown supported · ⌘↵ to post

[Ojo peter](https://hashnode.com/@Excelsior)

[Jul 26, 2023](https://hashnode.com/posts/spread-vs-rest-operator/64bc7de83e5b7d9bf47f425d/comment/64c173bb92c1493ce06e58d7)

This is great. Keep it up buddy💖
