---
title: "Discussion on \"ES6 features you need to know\" | Hashnode"
description: "Discussion on \"ES6 features you need to know\". Learning any modern frontend framework requires knowledge on some great features of JavaScript ES6. From my experience I thought of sharing 5 features of ES6 that I encountered using most often. So, in this post I will share simple explanation of the..."
url: "https://hashnode.com/posts/es6-features-you-need-to-know/5f7f435daddab004867df53f"
---

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

Discussion

# [ES6 features you need to know](https://tringacodes.com/es6-features-you-need-to-know?utm_source=hashnode&utm_medium=feed)

Learning any modern frontend framework requires knowledge on some great features of JavaScript ES6. From my experience I thought of sharing 5 features of ES6 that I encountered using most often. So, in this post I will share simple explanation of the...

Oct 8, 2020 · 4 min read · tringacodes.com  
Updated Jan 11, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#es6](https://hashnode.com/tag/es6)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Tringa Krasniqi](https://hashnode.com/@tringacodes)

@tringacodes · Prague, Czech Republic

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

Web developer

## Responses 1

Markdown supported · ⌘↵ to post

[ShishirB](https://hashnode.com/@ShishirB)

[Oct 9, 2020](https://hashnode.com/posts/es6-features-you-need-to-know/5f7f435daddab004867df53f/comment/5f7fc9f0b8638504a7c123d6)

Regarding the spread and rest operator, why does it have two names when it does the same thing in both cases? It does spread the values in both cases, right ?

[Nikolai Kolesnikov](https://hashnode.com/@kolesnilkov)

[Oct 9, 2020](https://hashnode.com/posts/es6-features-you-need-to-know/5f7f435daddab004867df53f/comment/5f7fc9f0b8638504a7c123d6#reply-5f8045f46e4aaa12c8be82e7)

I guess it depends on point of view.

When you declare function it is "rest": function funcName(a, b, ...rest) { console.log(rest); }

When you call function (or fill array, object) and try to pass a few arguments it is "spread":

funcName(...spread); \[...spread\]; {...spread};
