Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
跟上_JS_的腳步-ES2020.pdf
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
CypressKuo
August 28, 2020
Technology
30
0
Share
跟上_JS_的腳步-ES2020.pdf
CypressKuo
August 28, 2020
More Decks by CypressKuo
See All by CypressKuo
Deep-copying.pdf
cypresskuo
0
35
CSS_for_Web_Vitals.pdf
cypresskuo
0
39
談談_Code_review.pdf
cypresskuo
0
47
REST_vs_GraphQL_今夜はご注文はどっち.pdf
cypresskuo
0
23
CSS_重構.pdf
cypresskuo
0
27
Core_Web_Vitals.pdf
cypresskuo
0
55
這個時代人人都知道的敏捷開發.pdf
cypresskuo
0
62
Webassembly.pdf
cypresskuo
0
13
談談_Functional_Programming.pdf
cypresskuo
0
30
Other Decks in Technology
See All in Technology
EBS暗号化に失敗してEC2が動かなくなった話
hamaguchimmm
2
210
CloudTrail を見つめ直してみる
kazzpapa3
1
110
Hacobu Tech Deck
hacobu
PRO
0
120
サイボウズ 開発本部採用ピッチ / Cybozu Engineer Recruit
cybozuinsideout
PRO
10
79k
Chasing Real-Time Observability for CRuby
whitegreen
0
200
弁護士ドットコム株式会社 エンジニア職向け 会社紹介資料
bengo4com
1
180
20260428_Product Management Summit_tadokoroyoshiro
tadokoro_yoshiro
12
13k
レビューしきれない?それは「全て人力でのレビュー」だからではないでしょうか
amixedcolor
0
340
M5Stack CoreS3とZephyr(RTOS)で Edge AIっぽいことしてみた
iotengineer22
0
280
バイブコーディングで3倍早く⚪⚪を作ってみた
samakada
0
110
コードや知識を組み込む / Incorporate Code and Knowledge
ks91
PRO
0
170
The Journey of Box Building
tagomoris
4
3.3k
Featured
See All Featured
Speed Design
sergeychernyshev
33
1.6k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
180
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
220
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
340
Context Engineering - Making Every Token Count
addyosmani
9
840
YesSQL, Process and Tooling at Scale
rocio
174
15k
RailsConf 2023
tenderlove
30
1.4k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2k
Prompt Engineering for Job Search
mfonobong
0
270
The Curse of the Amulet
leimatthew05
1
11k
Transcript
跟上 JS 的腳步 - ES2020 cypresskuo @前端組例會 2020/08/28
Dynamic import This repository contains a proposal for adding a
"function-like" import() module loading syntactic form to JavaScript. It is currently in stage 4 of the TC39 process. Babel: @babel/plugin-syntax-dynamic-import · Babel
Nullish Coalescing It is currently in stage 4 of the
TC39 process. Babel: @babel/plugin-proposal-nullish-coalescing-operator · Babel 0 || 123; // 123 0 ?? 123; // 0
Optional Chaining It is currently in stage 4 of the
TC39 process. Babel: @babel/plugin-proposal-optional-chaining · Babel
Promise.allSettled It is currently in stage 4 of the TC39
process. 在所有給定的 promise 都已 fulfilled 或被 rejected 後,才執行下一步
其他不常用的特性 BigInt String.prototype matchAll globalThis Module Namespace Exports
同場加映: Promise 三兄弟 Promise.all 全部 promise 都要 fulfilled,才會返回 fulfilled 其中有一個被
rejected,就直接返回第一個被 reject 的值 Promise.any 全部 promise 都要 rejected,才會返回 rejected 其中有一個為 fulfilled,就直接返回第一個被 fulfilled 的值 Promise.race 直接返回第一個被 fulfilled / rejected 的 promise 其結果值
同場加映: 你可能會用到的 ES2019 String.prototype trimStart String.prototype trimEnd Array.prototype flat
Q & A
• https://www.freecodecamp.org/news/javascript-new-features-es 2020/ • https://es6.ruanyifeng.com/#docs/promise • https://medium.com/@selvaganesh93/javascript-whats-new-in- ecmascript-2019-es2019-es10-35210c6e7f4b