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

Chapter 2. Review of Important JavaScript OOP Concepts

Before we start creating and using our modules in JavaScript, it is important to have a good grasp of important Object Oriented Programming (OOP) concepts in JavaScript. We will rely on such concepts to design and implement our application modules in later chapter.

While my intent in this chapter is not to explore such conceptes in great depth, I will try to provide a good overview of some of the most important related topics.

If you feel that you are quite familiar with these concepts in JavaScript, you could skip this chapter and move on to the next one.

However, if you are not very familiar with OOP in JavaScript, even if you are familiar with similar concepts in classical object oriented languages, I encourage you to follow along as things are a little different in JavaScript. I think it will be worthwhile for you to have a look at these concepts in the realm of JavaScript.

In this chapter, we will cover:

  • JavaScript objects and their constructors
  • What this keyword is and how it behaves in different contexts
  • Closure and its uses
  • Inheritance in JavaScript
  • Prototype chaining

And other related topics.

主站蜘蛛池模板: 沈阳市| 寿阳县| 溧阳市| 康定县| 池州市| 芜湖市| 北票市| 乳源| 南川市| 临邑县| 涡阳县| 白玉县| 庐江县| 治多县| 连城县| 安溪县| 贵南县| 永新县| 巧家县| 肃宁县| 株洲市| 边坝县| 赤城县| 阿拉善盟| 渝中区| 山丹县| 宁化县| 东阿县| 株洲市| 湖口县| 横山县| 乐山市| 梓潼县| 泸定县| 墨竹工卡县| 勃利县| 丹阳市| 灵丘县| 大兴区| 循化| 杨浦区|