.ES6 (2015) ﻭ ES5 (2009) :ﺪﻧﺍ ﻩﺪﺷ ﯼﺭﺍﺬﮕﻣﺎﻧ ﺩﺍﺪﻋﺍ ﺎﺑ JS ﯽﻤﯾﺪﻗ ﯼﺎﻫ ﻪﺨﺴﻧ
... ،ECMAScript 2016، 2017، 2018، 2019 :ﺪﻧﻮﺷ ﯽﻣ ﯼﺭﺍﺬﮕﻣﺎﻧ ﻝﺎﺳ ﺱﺎﺳﺍ ﺮﺑ ﺎﻫ ﻪﺨﺴﻧ ،2016 ﻝﺎ
:ﺪﻨﮐ ﯽﻣ ﯽﻓﺮﻌﻣ ﺍﺭ ECMAScript 2018 ﺪﯾﺪﺟ ﯼﺎﻫ ﯽﮔﮋﯾﻭ ﻞﺼﻓ ﻦﯾﺍ
ﻥﺎﻣﺰﻤﻫﺎﻧ ﺭﺍﺮﮑﺗ
ﻩﺪﺑ ﻝﻮﻗ ﻩﺮﺧﻻﺎﺑ
ﯽﺷ ﺖﺣﺍﺮﺘﺳﺍ ﯼﺎﻫ ﯽﮔﮋﯾﻭ
RegExp ﺪﯾﺪﺟ ﯼﺎﻫ ﯽﮔﮋﯾﻭ
ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﮎﺮﺘﺸﻣ ﻪﻈﻓﺎﺣ
ECMAScript 2018 ﺩﺮﮐ ﻪﻓﺎﺿﺍ ﺍﺭ ﻥﺎﻣﺰﻤﻫﺎﻧ ﯼﺎﻫ ﻩﺪﻧﻮﺷﺭﺍﺮﮑﺗ ﻭ ﺎﻫ ﻩﺪﻨﻨﮐ ﺭﺍﺮﮑﺗ.
.ﻢﯿﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ ﺭﺎﻈﺘﻧﺍ<"code class="w3-codespan> ﺯﺍ ﻢﯿﻧﺍﻮﺗﯽﻣ ،ﻥﺎﻣﺰﻤﻫﺎﻧ ﺭﺍﺮﮑ
for await () {}
:ﺩﻮﺷﯽﻣ ﯽﻧﺎﺒﯿﺘﺸﭘ ﻥﺭﺪﻣ ﯼﺎﻫﺮﮔﺭﻭﺮﻣ ﻪﻤﻫ ﺭﺩ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﻥﺎﻣﺰﻤﻫﺎﻧ ﺭﺍﺮﮑﺗ ،2020 ﻪﯾﻮﻧﺍﮊ ﺯ
Chrome 63 | Edge 79 | Firefox 57 | Safari 11 | Opera 50 |
Dec 2017 | Jan 2020 | Nov 2017 | Sep 2017 | Jan 2018 |
ECMAScript 2018 ﯽﺷ ﻞﻣﺎﮐ ﯼﺍﺮﺟﺍ Promise ﺎﺑ ﺍﺭ Promise.finally
let myPromise = new Promise();
myPromise.then();
myPromise.catch();
myPromise.finally();
Promise.finally
ﯽﻣ ﯽﻧﺎﺒﯿﺘﺸﭘ ﻥﺭﺪﻣ ﯼﺎﻫﺮﮔﺭﻭﺮﻣ ﻪﻤﻫ ﺭﺩ 20
Chrome 63 | Edge 18 | Firefox 58 | Safari 11.1 | Opera 50 |
Dec 2017 | Nov 2018 | Jan 2018 | Mar 2018 | Jan 2018 |
ECMAScript 2018 ﺩﺮﮐ ﻪﻓﺎﺿﺍ ﺍﺭ ﺖﺣﺍﺮﺘﺳﺍ ﯼﺎﻫ ﯽﮔﮋﯾﻭ.
:ﻢﯿﻨﮐ ﯼﺭﻭﺁ ﻊﻤﺟ ﺪﯾﺪﺟ ﯽﺷ ﮏﯾ ﯼﻭﺭ ﺍﺭ ﺎﻫ ﻩﺪﻧﺎﻤﯿﻗﺎﺑ ﻭ ﻢﯾﺮﺒﺑ ﻦﯿﺑ ﺯﺍ ﺍﺭ ﯽﺷ ﮏﯾ ﺪﻫﺩ ﯽﻣ ﻥﺎﮑﻣﺍ ﺎﻣ
let { x, y, ...z } = { x: 1, y: 2, a: 3, b: 4 };
x; // 1
y; // 2
z; // { a: 3, b: 4 }
:ﺩﻮﺷ ﯽﻣ ﯽﻧﺎﺒﯿﺘﺸﭘ ﻥﺭﺪﻣ ﯼﺎﻫﺮﮔﺭﻭﺮﻣ ﻪﻤﻫ ﺭﺩ 2020 ﻪﯾﻮﻧﺍﮊ ﺯﺍ ءﺎﯿﺷﺍ ﺖﺣﺍﺮﺘﺳﺍ ﯼﺎﻫ ﯽﮔﮋﯾﻭ
Chrome 60 | Edge 79 | Firefox 55 | Safari 11.1 | Opera 47 |
Jul 2017 | Jan 2020 | Aug 2017 | Mar 2018 | Aug 2017 |
ECMAScript 2018 4 ﺪﯾﺪﺟ ﯽﮔﮋﯾﻭ RegExp ﺩﺮﮐ ﻪﻓﺎﺿﺍ ﺍﺭ:
Unicode Escapes (\p{...}) ﯽﮔﮋﯾﻭ
( !>?) ﻭ ( =>?) ﺕﺍﺭﺎﻬﻇﺍ ﻪﺑ ﻩﺎﮕﻧ
ﻂﺒﺿ ﯼﺎﻫ ﻩﻭﺮﮔ ﻡﺎﻧ ﻪﺑ
s (dotAll) ﻢﭼﺮﭘ
:ﺩﻮﺷ ﯽﻣ ﯽﻧﺎﺒﯿﺘﺸﭘ ﻥﺭﺪﻣ ﯼﺎﻫﺮﮔﺭﻭﺮﻣ ﻪﻤﻫ ﺭﺩ 2020 ﻦﺋﻭﮊ ﺯﺍ RegExp ﺪﯾﺪﺟ ﯼﺎﻫ ﯽﮔﮋﯾﻭ
Chrome 64 | Edge 79 | Firefox 78 | Safari 12 | Opera 51 |
Jan 2018 | Jan 2020 | Jun 2020 | Sep 2018 | Feb 2018 |
.ﺪﯿﻨﮐ ﯽﻣ ﻩﺩﺎﻔﺘﺳﺍ ﺎﻫ ﻪﺘﺷﺭ ﺩﺎﺠﯾﺍ ﯼﺍﺮﺑ Web Workers API ﺯﺍ ﺖﭙﯾﺮﮑﺳﺍ ﺍﻭﺎﺟ ﺭﺩ
.ﺪﻫﺩ ﻪﻣﺍﺩﺍ ﺍﺮﺟﺍ ﻪﺑ ﺪﻧﺍﻮﺘﺑ ﯽﻠﺻﺍ ﻪﻣﺎﻧﺮﺑ ﺎﺗ ﺩﻮﺷ ﯽﻣ ﻩﺩﺎﻔﺘﺳﺍ ﻪﻨﯿﻣﺯ ﺲﭘ ﺭﺩ ﺪﮐ ﯼﺍﺮﺟﺍ ﯼﺍﺮﺑ ﺮﮔﺭ
thread ﯼﺎﻫ Worker ﻒﻠﺘﺨﻣ ﺕﺎﻌﻄﻗ ﻥﺎﻣﺰﻤﻫ ﯼﺍﺮﺟﺍ .ﺪﻧﻮﺷ ﯽﻣ ﺍﺮﺟﺍ ﯽﻠﺻﺍ ﻪﻣﺎﻧﺮﺑ ﺎﺑ ﻥﺎﻣﺰﻤﻫ
ﺪﻫﺩ ﯽﻣ ﻩﺯﺎﺟﺍ (ﻪﻣﺎﻧﺮﺑ ﮏﯾ ﻒﻠﺘﺨﻣ ﯼﺎﻫ ﺶﺨﺑ) ﺎﻫ ﻪﺘﺷﺭ ﻪﺑ ﻪﮐ ﺖﺳﺍ ﯽﺘﯿﻠﺑﺎﻗ ﮎﺮﺘﺸﻣ ﻪﻈﻓﺎﺣ
ﺪﯿﻨﮐ ﻝﺎﺳﺭﺍ ﺍﺭ SharedArrayBuffer ﯽﺷ ﮏﯾ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ،ﺎﻫ ﻪﺘﺷﺭ ﻦﯿﺑ ﺎﻫ ﻩﺩﺍﺩ ﻝﺎﻘﺘﻧﺍ ﯼﺎﺟ ﻪﺑ
.ﺪﻫﺩ ﯽﻣ ﻥﺎﺸﻧ ﺍﺭ ArrayBuffer ﯽﺷ ﻪﺑﺎﺸﻣ ﺖﺑﺎﺛ ﻝﻮﻃ ﺎﺑ ﻡﺎﺧ ﯼﺮﻨﯾﺎﺑ ﻩﺩﺍﺩ ﺮﻓﺎﺑ ﮏﯾ SharedArrayB