官术网_书友最值得收藏!

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
主站蜘蛛池模板: 柳江县| 宜州市| 新丰县| 霍山县| 温泉县| 新建县| 自贡市| 合山市| 黄大仙区| 正阳县| 营山县| 玉溪市| 青海省| 宁陕县| 蓝田县| 同仁县| 康定县| 临武县| 波密县| 丘北县| 镇巴县| 理塘县| 鹤岗市| 娱乐| 开鲁县| 新营市| 神木县| 商丘市| 邳州市| 交城县| 绵阳市| 横峰县| 灵寿县| 梁山县| 安泽县| 叙永县| 平和县| 陈巴尔虎旗| 嵊州市| 桑日县| 集贤县|