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

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
主站蜘蛛池模板: 高密市| 阿巴嘎旗| 东莞市| 奉贤区| 马山县| 卫辉市| 南通市| 澎湖县| 西和县| 剑河县| 大埔县| 平阴县| 江源县| 叙永县| 和顺县| 翁源县| 宁城县| 剑河县| 清河县| 滕州市| 舞钢市| 阜康市| 泰来县| 安乡县| 西安市| 兴城市| 穆棱市| 凌云县| 惠水县| 安顺市| 屏东市| 武安市| 前郭尔| 襄垣县| 牙克石市| 朝阳市| 台中县| 玛曲县| 罗江县| 茂名市| 万安县|