iT邦幫忙

鐵人檔案

第 11 屆 iThome 鐵人賽
回列表
Modern Web

跟著 YDKJS 作者 Kyle Simpson 打造全新 JavaScript Mindset 系列

本來想說是會以 JavaScript 閱讀 ECMAScript spec 理解為主。
紀錄一些筆記的心得。

後來發現筆記到最後,都是 Kyle Simpson (You-Dont-Know-JS作者) 的理解。

所以換句話說,可以說是心得,也可以當作 註釋《You Don't Know JS》的文章。
如果你看過 YDKJS,那再回去翻一次,收穫更大(期許)。

鐵人鍊成 | 共 31 篇文章 | 44 人訂閱 訂閱系列文 RSS系列文
DAY 21

[day20] YDKJS (Scope) : Advanced Scope

Lexical & dynamic scope lexical scope dynamic scope You-Dont-Know-JS/sco...

2019-10-06 ‧ 由 Ashe Li 分享
DAY 22

[day21] YDKJS (Scope) : Hoisting ? let 會 Hoist 嗎 ?

tags: 鐵人賽 Hoisting : Hoisting 並不是文件規範的詞彙 sample : 一個最常見的範例 sample : 另一個範例 func...

2019-10-07 ‧ 由 Ashe Li 分享
DAY 23

[day22] YDKJS (Closure) : Closure 入門: persistent lexical scope referenced data

Closure 的歷史故事 文章寫很多次,你現在應該也知道,JavaScript 被創造的目標是一個「自認為很聰明的語言」 ,有很多「很聰明(自認)的語言才會有...

2019-10-08 ‧ 由 Ashe Li 分享
DAY 24

[day23] YDKJS (Closure) : 從 Closure 到 Module Pattern

Closure 不能快照(snapshot)值? 今天如果你以快照(snapshot)保留一個值,這樣是 closure 嗎? No, Closure 和值 並...

2019-10-09 ‧ 由 Ashe Li 分享
DAY 25

[day24] YDKJS (Objects) : 「this」 是 JavaScript 使用 Dynamic scope 的方法?

JavaScript 是 Objects(要加s) Oriented 和你想的 Object-oriented programming 不一樣 一般 Obje...

2019-10-10 ‧ 由 Ashe Li 分享
DAY 26

[day25] YDKJS (Objects) : 真。淺談 this 與 Class, 到前端框架的愛恨情仇

ES6 Class keyword class 可以是 statement class 可以是 expression class 也可以是 anonymo...

2019-10-11 ‧ 由 Ashe Li 分享
DAY 27

[day26] YDKJS (Prototypes) : Class 在其他語言是什麼樣子?

Prototype System 大家都說 JavaScript 是 Prototype System,也是時候來好好瞭解 JavaScript 如何用 Pro...

2019-10-12 ‧ 由 Ashe Li 分享
DAY 28

[day27] YDKJS (Prototypes) : 圖解 Prototype Chain

圖示說明 今天會用圖解來表示 Prototype Chain,不過開始之前,先整理一下會用到 component: function 使用圓圈 Object...

2019-10-13 ‧ 由 Ashe Li 分享
DAY 29

[day28] YDKJS (Prototypes) : Prototype Chain 的 __proto__

constructor 也有 Prototype Chain 的特性。 function Workshop(teacher) { this.teacher...

2019-10-14 ‧ 由 Ashe Li 分享
DAY 30

[day29] YDKJS (Prototypes) : Prototype (Delegation pattern) 實踐 Inheritance

prototype 如果 shadow 會怎麼樣? line 10 : 你直接加一個 ask 方法在 deepJS 上面。 但之前 line 4 又有另一個...

2019-10-15 ‧ 由 Ashe Li 分享