---
title: "Discussion on \"Spread Operator and Rest Operator\" | Hashnode"
description: "Discussion on \"Spread Operator and Rest Operator\". In modern JavaScript, there are two important operators you should be aware of, they are the Rest and the Spread operators. Let's start by talking about the Spread operator. Let's say you want to implement a pattern where you want to add a new array ..."
url: "https://hashnode.com/posts/spread-operator-and-rest-operator/5fca13aa4e63106cf5076432"
---

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

Discussion

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

In modern JavaScript, there are two important operators you should be aware of, they are the Rest and the Spread operators. Let's start by talking about the Spread operator. Let's say you want to implement a pattern where you want to add a new array ...

Dec 4, 2020 · 6 min read · odofing.hashnode.dev  
Read the article

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

## Written by

[Gbadamosi Odofin](https://hashnode.com/@OdofinG)

@OdofinG · Lagos, Nigeria

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

OdofinG

## Responses 2

Markdown supported · ⌘↵ to post

[Sa](https://hashnode.com/@Sowaen)

[Apr 6, 2021](https://hashnode.com/posts/spread-operator-and-rest-operator/5fca13aa4e63106cf5076432/comment/606c42cab17dc439b747ea9d)

good

[Kehinde Abe](https://hashnode.com/@Ken0x)

[Dec 4, 2020](https://hashnode.com/posts/spread-operator-and-rest-operator/5fca13aa4e63106cf5076432/comment/5fca3506a4865f740d163979)

Great article. In case of next time, you can use [GitHub gist](https://gist.github.com/) or codepen.io to share code snippets.

[Gbadamosi Odofin](https://hashnode.com/@OdofinG)

[Dec 4, 2020](https://hashnode.com/posts/spread-operator-and-rest-operator/5fca13aa4e63106cf5076432/comment/5fca3506a4865f740d163979#reply-5fca465ea4865f740d163b1b)

Thanks kenny, I've updated the blog, cope snippets functionality is actually on hashnode but I never knew.
