概述#

在掌握了函式 (functions) 的各種面向之後,Part 3 將繼續深入探索 JavaScript,聚焦於物件程式碼強化

本篇涵蓋章節#

  • Chapter 7 - Object orientation with prototypes:深入了解物件基礎,探討 prototype 如何運作、建構函式與原型的關係,以及 ES6 class 語法
  • Chapter 8 - Controlling access to objects:學習如何透過 getter/setter 控制與監控物件存取,以及使用 proxy 這種全新的物件類型
  • Chapter 9 - Dealing with collections:探討傳統的陣列 (array) 以及全新的集合型別,如 Map 和 Set
  • Chapter 10 - Wrangling regular expressions:學習正規表達式,將原本需要大量程式碼才能完成的任務濃縮為幾行語句
  • Chapter 11 - Code modularization techniques:將 JavaScript 應用程式組織為更小、結構良好的功能單元——模組 (modules)