---
title: "Discussion on \"What code newbies should know about the ...rest and ...spread syntax\" | Hashnode"
description: "Discussion on \"What code newbies should know about the ...rest and ...spread syntax\". Rest parameters are used to create functions that accept any number of arguments.\nThe spread syntax is used to pass an array to functions"
url: "https://hashnode.com/posts/what-code-newbies-should-know-about-the-rest-and-spread-syntax/6128117222e1ba252a88022b"
---

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

Discussion

# [What code newbies should know about the ...rest and ...spread syntax](https://efkumah.hashnode.dev/what-code-newbies-should-know-about-the-rest-and-spread-syntax?utm_source=hashnode&utm_medium=feed)

Rest parameters are used to create functions that accept any number of arguments. The spread syntax is used to pass an array to functions

Aug 26, 2021 · 10 min read · efkumah.hashnode.dev  
Read the article

-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#hashnode](https://hashnode.com/tag/hashnode)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)

## Written by

[Emmanuel Fordjour Kumah](https://hashnode.com/@efkumah)

@efkumah · Accra, Ghana

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

Sharing Programming Knowledge

Documenting my coding journey, sharing thoughts and helping beginner programmers remove the frustration with copy-paste JavaScript code without understanding

## Responses 1

Markdown supported · ⌘↵ to post

[Dev By RayRay](https://hashnode.com/@devbyrayray)

[Aug 27, 2021](https://hashnode.com/posts/what-code-newbies-should-know-about-the-rest-and-spread-syntax/6128117222e1ba252a88022b/comment/61289dc322e1ba252a880e1c)

Great article! It's indeed good that JavaScript newbies learn to use the spread syntax and rest operator 😁

[Aug 27, 2021](https://hashnode.com/posts/what-code-newbies-should-know-about-the-rest-and-spread-syntax/6128117222e1ba252a88022b/comment/61289dc322e1ba252a880e1c#reply-6128f2eb9da1766342ad66c2)

Yep, spread and rest are powerful tools to add to your bag of tricks when mastered.
