---
title: "Discussion on \"JavaScript Spread Vs Rest vs Set Vs Map - #Amazing Facts & Cheat code\" | Hashnode"
description: "Discussion on \"JavaScript Spread Vs Rest vs Set Vs Map - #Amazing Facts & Cheat code\". JavaScript Spread and Rest Operator in depth wth differences and common points . Javascript Set() and Map() Method ultimate guide"
url: "https://hashnode.com/posts/javascript-spread-vs-rest-vs-set-vs-map-amazing-facts-cheat-code/648f4ceda9ac781349a33410"
---

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

Discussion

# [JavaScript Spread Vs Rest vs Set Vs Map - #Amazing Facts & Cheat code](https://visionarycoder.hashnode.dev/javascript-spread-vs-rest-vs-set-vs-map-amazing-facts-cheat-code?utm_source=hashnode&utm_medium=feed)

JavaScript Spread and Rest Operator in depth wth differences and common points . Javascript Set() and Map() Method ultimate guide

Jun 18, 2023 · 3 min read · visionarycoder.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#vanilla-js-1](https://hashnode.com/tag/vanilla-js-1)
-   [#javascript-modules](https://hashnode.com/tag/javascript-modules)
-   [#javascript-framework](https://hashnode.com/tag/javascript-framework)
-   [#javascript-spread-vs-rest-operator](https://hashnode.com/tag/javascript-spread-vs-rest-operator)

## Written by

[Pratik Mahadik](https://hashnode.com/@pratik1021)

@pratik1021 · Pune , India

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

On My Way To Be A Full Stack Developer

Hey Reader! I'm a full-stack web developer geek who is only now beginning to blog. I have a passion for creating web apps from the ground up and enjoy learning about all the many technologies used in the process. You can read a variety of lessons, observations, and thoughts on my Hashnode blog as I make my way through the world of full-stack web development. I'll be sharing everything I learn along the road, from introductory lessons for beginners to more complex subjects, as well as some of the difficulties I encounter and how I get beyond them. Follow me as I learn how to build a full-stack website, one or two blog post per week! Together, let's build some amazing web applications while learning.

## Responses 1

Markdown supported · ⌘↵ to post

[Md. Kaiyom](https://hashnode.com/@kaiyom)

[Jun 19, 2023](https://hashnode.com/posts/javascript-spread-vs-rest-vs-set-vs-map-amazing-facts-cheat-code/648f4ceda9ac781349a33410/comment/648ff49f018fec138a9a97c8)

Not single lines of code as example!! You should add example codes.

[Pratik Mahadik](https://hashnode.com/@pratik1021)

[Jun 19, 2023](https://hashnode.com/posts/javascript-spread-vs-rest-vs-set-vs-map-amazing-facts-cheat-code/648f4ceda9ac781349a33410/comment/648ff49f018fec138a9a97c8#reply-648ff672588d27135a06ebc6)

Thank you for reaching out to me ! If you are reading the article on Android/ios devices Code Snippets will not be shown! I don't know why this is happening but Hashnode is not showing code snippets on mobile phones. But if you are reading on Laptop it should work ! Check it out on Laptop & sorry for the inconvenience occurred.

[Md. Kaiyom](https://hashnode.com/@kaiyom)

[Jun 19, 2023](https://hashnode.com/posts/javascript-spread-vs-rest-vs-set-vs-map-amazing-facts-cheat-code/648f4ceda9ac781349a33410/comment/648ff49f018fec138a9a97c8#reply-648ffab2018fec138a9a990d)

[Pratik Mahadik](https://hashnode.com/@pratik1021) Ohh. Thanks. I wasn't aware of that.
