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

Chapter 2. Organizing Code

In this chapter we'll look at how to organize JavaScript code into reusable, understandable chunks. The language itself 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 for 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 2015 classes
主站蜘蛛池模板: 吉水县| 雅安市| 来安县| 洛浦县| 天津市| 雷州市| 常宁市| 晋江市| 北京市| 凤山县| 雷波县| 宜城市| 石河子市| 双峰县| 岳普湖县| 永定县| 呼图壁县| 金川县| 新沂市| 略阳县| 山东| 漳平市| 麻城市| 漾濞| 肃宁县| 铜鼓县| 枞阳县| 通许县| 额敏县| 新民市| 定结县| 同德县| 大化| 三明市| 巨野县| 长垣县| 乳山市| 鄱阳县| 枝江市| 涟水县| 崇礼县|