Javascript: What version are we using: ES5? ES6? ES?

Started by ubacher, June 10, 2017, 08:42:22 AM

Previous topic - Next topic

ubacher

As I dig further into Javascript in order to learn as much as I need I came upon the question
as to what version of Javascript is already implemented for us.

This came about because there is an await function (proposed or already available?) which
would help us mightily.

I found out about await on this web page:
https://medium.com/javascript-scene/the-hidden-power-of-es6-generators-observable-async-flow-control-cfa4c7f31435

After giving an example of its use it said:
QuoteIt's asynchronous code that looks and feels synchronous. For JavaScript programmers who do a ton of asynchronous programming every day, this is basically the holy grail: All of the performance benefits of asynchronous code with none of the cognitive overhead.

Mario

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

ubacher

#2
My googling has shown:
Chromium supports javascript ES6 and ES7 since Version 52. (All of its features??)
The latest version (which I assume we are running in Imatch) is 59.

For those of us not scripting for Imatch Anywhere I assume we do not have to worry about
how other browsers can handle the code. (Other than if we use a browser other than chromium
during development. I think I will start using chromium for development to avoid any problem this way.)

The version naming of javascript is well explained in:
https://benmccormick.org/2015/09/14/es5-es6-es2016-es-next-whats-going-on-with-javascript-versioning/

There is Chromium and then there is Chrome. Which one dose Mario recommend?

Mario

I don't recommend any browser. Both Google Chrome (Windows) or Chromium (Linux) are good browsers. So is Firefox. I don't bother about IE anymore but naturally have to test on Edge.
For development I prefer Chrome and FF because of their excellent debugging tools. Edge is getting better as well.

I integrate Chromium updates regularly to keep up with bug and security fixes. But I've chosen to integrate Chromium for good reasons. This was really hard but it gives IMatch a top-notch and state-of-the art browser. And the fastest JavaScript engine there is. Maybe Edge is a bit faster in some cases, but overall Chromium excels.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook