- Mastering JavaScript Design Patterns
- Simon Timms
- 80字
- 2021-08-05 17:14:56
Chapter 2. Organizing Code
In this chapter, we'll look at how to organize JavaScript code into reusable, understandable chunks. The language doesn't lend itself well to this sort of modularization, but a number of methods of organizing JavaScript code have emerged over the years. This chapter will argue the need to break down code, and then work through the methods of creating JavaScript modules.
We will cover the following topics:
- Global scope
- Objects
- Prototype inheritance
- ECMAScript 6 classes
推薦閱讀
- Oracle從入門到精通(第3版)
- Apache ZooKeeper Essentials
- Learning C# by Developing Games with Unity 2020
- C語(yǔ)言程序設(shè)計(jì)(第3版)
- 數(shù)據(jù)結(jié)構(gòu)(Python語(yǔ)言描述)(第2版)
- 教孩子學(xué)編程:C++入門圖解
- 嚴(yán)密系統(tǒng)設(shè)計(jì):方法、趨勢(shì)與挑戰(zhàn)
- PhpStorm Cookbook
- Elasticsearch for Hadoop
- Symfony2 Essentials
- Learning ArcGIS for Desktop
- Learning JavaScript Data Structures and Algorithms
- jQuery Mobile移動(dòng)應(yīng)用開(kāi)發(fā)實(shí)戰(zhàn)(第3版)
- WordPress 4.0 Site Blueprints(Second Edition)
- 從零開(kāi)始學(xué)Linux編程