Book Description
If you’ve used a more traditional object-oriented language, such as C++ or Java, JavaScript probably doesn’t seem object-oriented at all. It has no concept of classes, and you don’t even need to define any objects in order to write code. But don’t be fooled—JavaScript is an incredibly powerful and expressive object-oriented language that puts many design decisions right into your hands.
In The Principles of Object-Oriented JavaScript, Nicholas C. Zakas thoroughly explores JavaScript’s object-oriented nature, revealing the language’s unique implementation of inheritance and other key characteristics. You’ll learn:
- The difference between primitive and reference values
- What makes JavaScript functions so unique
- The various ways to create objects
- How to define your own constructors
- How to work with and understand prototypes
- Inheritance patterns for types and objects
The Principles of Object-Oriented JavaScript will leave even experienced developers with a deeper understanding of JavaScript. Unlock the secrets behind how objects work in JavaScript so you can write clearer, more flexible, and more efficient code.
Table of Contents
Chapter 1. Primitive and Reference Types
Chapter 2. Functions
Chapter 3. Understanding Objects
Chapter 4. Constructors and Prototypes
Chapter 5. Inheritance
Chapter 6. Object Patterns
中文:
书名:The Principles of Object-Oriented JavaScript
如果你使用过更传统的面向对象语言,比如C++或Java,那么JavaScript可能根本就不是面向对象的。它没有类的概念,您甚至不需要定义任何对象来编写代码。但不要上当受骗–JavaScript是一种功能强大、表现力极强的面向对象语言,它将许多设计决定权都掌握在您手中。
In 面向对象的Java脚本的原理,Nicholas C.Zakas深入探讨了JavaScript的面向对象特性,揭示了该语言对继承和其他关键特征的独特实现。你将会学到:
- 原始值和参考值之间的差异
- 是什么让JavaScript函数如此独特
- The various ways to create objects
- How to define your own constructors
- 如何使用和理解原型
- 类型和对象的继承模式
面向对象的Java脚本的原理 即使是经验丰富的开发人员也会对Java有更深的理解。解开对象在JavaScript中如何工作的秘密,这样您就可以编写更清晰、更灵活和更高效的代码。
Table of Contents
Chapter 1. Primitive and Reference Types
Chapter 2. Functions
Chapter 3. Understanding Objects
Chapter 4. Constructors and Prototypes
Chapter 5. Inheritance
Chapter 6. Object Patterns
评论前必须登录!
注册