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

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
主站蜘蛛池模板: 陵川县| 博野县| 青浦区| 北流市| 台北县| 合川市| 庄浪县| 长宁县| 富源县| 镇康县| 彭山县| 灵宝市| 乳山市| 蚌埠市| 上杭县| 泸溪县| 舟山市| 乌恰县| 溆浦县| 静安区| 商城县| 阜新| 茌平县| 张家口市| 萨嘎县| 吉水县| 平顺县| 乡城县| 宜兴市| 綦江县| 襄垣县| 宜昌市| 石河子市| 南康市| 偃师市| 土默特右旗| 中西区| 鞍山市| 顺平县| 和顺县| 台湾省|