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
CypressKuo
August 28, 2020
Technology
0
22
跟上_JS_的腳步-ES2020.pdf
CypressKuo
August 28, 2020
Tweet
Share
More Decks by CypressKuo
See All by CypressKuo
Deep-copying.pdf
cypresskuo
0
16
CSS_for_Web_Vitals.pdf
cypresskuo
0
19
談談_Code_review.pdf
cypresskuo
0
22
REST_vs_GraphQL_今夜はご注文はどっち.pdf
cypresskuo
0
5
CSS_重構.pdf
cypresskuo
0
13
Core_Web_Vitals.pdf
cypresskuo
0
29
這個時代人人都知道的敏捷開發.pdf
cypresskuo
0
35
Webassembly.pdf
cypresskuo
0
4
談談_Functional_Programming.pdf
cypresskuo
0
12
Other Decks in Technology
See All in Technology
生産性向上チームの紹介
cybozuinsideout
PRO
1
880
MapLibreとAmazon Location Service
dayjournal
1
160
よく聞くけど使ったことないソフトウェアNo.1 KafkaとSnowflake
foursue
4
370
障害対応をちょっとずつよくしていくための 演習の作りかた
heleeen
1
320
IaCジェネレーターとBedrockで詳細設計書を生成してみた
tsukasa_ishimaru
3
490
AOAI をきっかけに 社内の Azure 管理を見直した話
recruitengineers
PRO
1
380
LayerXにおけるLLMプロダクト開発の今までとこれから
layerx
PRO
2
450
APIファーストなプロダクトマネジメントの実践 〜SaaSus Platformでの例〜 / "Practicing API-First Product Management - An Example with SaaSus Platform
oztick139
0
110
どうするコスト最適化のトレードオフ
tetsuyaooooo
1
610
require(ESM)とECMAScript仕様
uhyo
4
840
一生覚えておきたい「システム開発=コミュニケーション」〜初めての実務案件振り返りLT〜
maimyyym
2
180
[新卒向け研修資料] テスト文字列に「うんこ」と入れるな(2024年版)
infiniteloop_inc
4
16k
Featured
See All Featured
How to Ace a Technical Interview
jacobian
272
22k
Agile that works and the tools we love
rasmusluckow
325
20k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
17
1.4k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
659
120k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
322
20k
BBQ
matthewcrist
80
8.8k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
The Brand Is Dead. Long Live the Brand.
mthomps
49
29k
Statistics for Hackers
jakevdp
789
220k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
40
4.4k
Principles of Awesome APIs and How to Build Them.
keavy
121
16k
Music & Morning Musume
bryan
41
5.6k
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