$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
跟上_JS_的腳步-ES2020.pdf
Search
CypressKuo
August 28, 2020
Technology
0
26
跟上_JS_的腳步-ES2020.pdf
CypressKuo
August 28, 2020
Tweet
Share
More Decks by CypressKuo
See All by CypressKuo
Deep-copying.pdf
cypresskuo
0
31
CSS_for_Web_Vitals.pdf
cypresskuo
0
37
談談_Code_review.pdf
cypresskuo
0
42
REST_vs_GraphQL_今夜はご注文はどっち.pdf
cypresskuo
0
22
CSS_重構.pdf
cypresskuo
0
24
Core_Web_Vitals.pdf
cypresskuo
0
51
這個時代人人都知道的敏捷開發.pdf
cypresskuo
0
55
Webassembly.pdf
cypresskuo
0
11
談談_Functional_Programming.pdf
cypresskuo
0
26
Other Decks in Technology
See All in Technology
ログ管理の新たな可能性?CloudWatchの新機能をご紹介
ikumi_ono
0
250
Ruby で作る大規模イベントネットワーク構築・運用支援システム TTDB
taketo1113
1
110
Oracle Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
0
680
「Managed Instances」と「durable functions」で広がるAWS Lambdaのユースケース
lamaglama39
0
220
AI時代の開発フローとともに気を付けたいこと
kkamegawa
0
1.4k
Docker, Infraestructuras seguras y Hardening
josejuansanchez
0
150
Uncertainty in the LLM era - Science, more than scale
gaelvaroquaux
0
750
たかが特別な時間の終わり / It's Only the End of Special Time
watany
28
7.8k
Kubernetes Multi-tenancy: Principles and Practices for Large Scale Internal Platforms
hhiroshell
0
100
コミューンのデータ分析AIエージェント「Community Sage」の紹介
fufufukakaka
0
390
技術以外の世界に『越境』しエンジニアとして進化を遂げる 〜Kotlinへの愛とDevHRとしての挑戦を添えて〜
subroh0508
1
350
意外とあった SQL Server 関連アップデート + Database Savings Plans
stknohg
PRO
0
270
Featured
See All Featured
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
1k
Thoughts on Productivity
jonyablonski
73
5k
BBQ
matthewcrist
89
9.9k
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
Producing Creativity
orderedlist
PRO
348
40k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.7k
How STYLIGHT went responsive
nonsquared
100
5.9k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.6k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.8k
For a Future-Friendly Web
brad_frost
180
10k
Leading Effective Engineering Teams in the AI Era
addyosmani
8
1.3k
Designing for Performance
lara
610
69k
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