# Which javascript version for Webstorm

**URL:** <https://discourse.nodered.org/t/which-javascript-version-for-webstorm/36567>\
**Category:** General\
**Created:** [26 November 2020 15:28 UTC](https://discourse.nodered.org/t/which-javascript-version-for-webstorm/36567 "2020-11-26T15:28:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ozpos](https://avatars.discourse-cdn.com/v4/letter/o/278dde/32.png) [@ozpos](https://discourse.nodered.org/u/ozpos)\
**Post date:** [26 November 2020 15:28 UTC](https://discourse.nodered.org/t/which-javascript-version-for-webstorm/36567/1 "2020-11-26T15:28:26Z")

</div>

Hi all,

Could anyone please tell me which version I should choose ?

ECMAScript 5.1  
ECMAScript 6+  
React JSX  
Flow

This is to help find a js error that blows up in the browser before the first debugger statement.

The error I get is:  
VM1950:34 Uncaught TypeError: {(intermediate value)(intermediate value)(intermediate value)(intermediate value)(intermediate value)} is not a function

Best regards,  
oz

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [26 November 2020 21:07 UTC](https://discourse.nodered.org/t/which-javascript-version-for-webstorm/36567/2 "2020-11-26T21:07:01Z")

</div>

Which version you want depends on the browser you are using.

Here is a mapping table I put at the top of my `.eslintrc.js` file to remind me what versions to use:

```auto
/** JavaScript Versions
 * 5 is minimum -> Last IE11
 * 6 = 2015 -> Node >8.10, iOS12+
 * 7 = 2016 -> FF78+, 
 * 8 = 2017 -> Node 10.9+
 * 9 = 2018 -> Node 12.11+
 */

```

Virtually all browsers now support at least v6 aka v2015.

REACT and Flow are not JS versions, they are something else.

---

<div class="post-metadata">

**Author:** ![ozpos](https://avatars.discourse-cdn.com/v4/letter/o/278dde/32.png) [@ozpos](https://discourse.nodered.org/u/ozpos)\
**Post date:** [26 November 2020 22:37 UTC](https://discourse.nodered.org/t/which-javascript-version-for-webstorm/36567/3 "2020-11-26T22:37:25Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [25 January 2021 22:37 UTC](https://discourse.nodered.org/t/which-javascript-version-for-webstorm/36567/4 "2021-01-25T22:37:48Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
