# What's New in JavaScript for 2019

**URL:** <https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982>\
**Category:** Developer Blog Comments\
**Created:** [January 22, 2019, 6:54pm UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982 "2019-01-22T18:54:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 22, 2019, 6:54pm UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/1 "2019-01-22T18:54:25Z")

</div>

[What’s New in JavaScript for 2019](https://developer.okta.com/blog/2019/01/22/whats-new-in-es2019)

Here are the new features coming to ES2019 for JavaScript.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 22, 2019, 11:46pm UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/2 "2019-01-22T23:46:29Z")

</div>

**Zibri ([http://www.zibri.org](http://www.zibri.org))**

What will make Javascript take a huge leap forward will be a proper standardized compiler like gcc.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 23, 2019, 7:04am UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/3 "2019-01-23T07:04:17Z")

</div>

**Jēkabs Kārkliņš**

Definitely private and public function access modifiers would be awesome. And _without_ hash in front of them. I see how that would make it easier to spot private function in code, but as long as you have private in front of function, good IDE can do the rest by coloring, underlining or whatever developer him/herself prefer.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 23, 2019, 7:54am UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/4 "2019-01-23T07:54:26Z")

</div>

**Olivier**

I’m agree for private tag…

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 23, 2019, 8:54am UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/5 "2019-01-23T08:54:06Z")

</div>

**Grunk**

I would love to understand why the f\*\*\* the hashtag is prefered over a simple private keyword. Why use static then ? let’s prefer something like ‘@’ to mark static …  
is it because JS is to good to use well established standard ?

I’m not gonna drop Typescript anytime soon …

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 23, 2019, 4:30pm UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/6 "2019-01-23T16:30:58Z")

</div>

**David Neal**

There is [an explanation](https://github.com/tc39/proposal-class-fields/blob/master/PRIVATE_SYNTAX_FAQ.md "https://github.com/tc39/proposal-class-fields/blob/master/PRIVATE\_SYNTAX\_FAQ.md") on the thoughts behind the hashtag syntax.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 23, 2019, 4:36pm UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/7 "2019-01-23T16:36:20Z")

</div>

**David Neal**

Here are the [current reasons](https://github.com/tc39/proposal-class-fields/blob/master/PRIVATE_SYNTAX_FAQ.md "https://github.com/tc39/proposal-class-fields/blob/master/PRIVATE\_SYNTAX\_FAQ.md") behind using the hashtag symbol. Something to keep in mind, is JavaScript is a dynamic language, and types can be added/modified at runtime, so that does complicate things.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 24, 2019, 2:23pm UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/8 "2019-01-24T14:23:01Z")

</div>

**CristianCortez**

when you stop to think about it, and put yourself in the shoes of the guy in charge to add private attributes. You might not like it. But given the current lang limitations whoever came with the idea of using # is a genius (it’s the easiest, shorter way to do it imaginable).

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 25, 2019, 7:19pm UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/9 "2019-01-25T19:19:58Z")

</div>

**Daniel**

While I understand the reasoning I also think it’s so ugly. And at what point will this become brainfuck? Maybe it’s time to design a new language, or adopt typescript in the browser?

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 26, 2019, 7:13am UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/10 "2019-01-26T07:13:51Z")

</div>

**Hannad Ur Rehman**

classes are a debate

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 26, 2019, 5:36pm UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/11 "2019-01-26T17:36:31Z")

</div>

**B.Max**

What other ways would you use to signal it’s a private field/method/…?

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 26, 2019, 6:20pm UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/12 "2019-01-26T18:20:33Z")

</div>

**Fabio Roldan**

It would be interesting to use UML + public - private # protected

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 28, 2019, 5:01am UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/13 "2019-01-28T05:01:15Z")

</div>

**Nikhil Jauhari**

I do agree for private way, # make it looking a bit strange.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 28, 2019, 11:50am UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/14 "2019-01-28T11:50:53Z")

</div>

**Filipe Costa**

No… we should NOT put ourselves in the shoes of the guy who’s introducing this syntax. we should put ourselves in the shoes of daily Javascript users.  
I guess you should be more worried with the Javascript community feedback and Javascript language future then trying to introduce this non-loved syntax at all cost.

The class introduction was a mess…  
Now you want to introduce the traditional line comment as a private field identifier (?!)  
Tomorrow you’ll just kill Javascript.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 28, 2019, 2:48pm UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/15 "2019-01-28T14:48:37Z")

</div>

**Rafael Corrêa Gomes ♛**

Thank you for sharing!

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 29, 2019, 9:38pm UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/16 "2019-01-29T21:38:54Z")

</div>

**Dmytro Pylypenko**

Thanks for the article.

Private declaration by hash symbol `#` is a terrible part, wonder why it’s almost accepted instead of underscore `_`.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 29, 2019, 11:58pm UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/17 "2019-01-29T23:58:44Z")

</div>

**fumblepigskin**

almost certainly because of the widespread use of lodash and underscorejs libraries which use the `_`

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 30, 2019, 8:35am UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/18 "2019-01-30T08:35:24Z")

</div>

**Dmytro Pylypenko**

Doubt.

There is big difference between `_.something` and `this._something`.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 30, 2019, 9:35am UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/19 "2019-01-30T09:35:23Z")

</div>

**daniel barde**

I think the hash is better off compared to the “_" because "_” is a valid character in a variable name. Also, they might have been looking for something to easily differentiate the private props from the public. Wonder why a private keyword didn’t come to mind though like in other languages.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [January 30, 2019, 9:46am UTC](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982/20 "2019-01-30T09:46:21Z")

</div>

**Dmytro Pylypenko**

I see your point, it makes sense, to use reserved character.  
But obviously `private` keyword gives more flexibility.

[Next page](https://devforum.okta.com/t/whats-new-in-javascript-for-2019/16982.md?page=2)
