Зарегистрироваться
Восстановить пароль
FAQ по входу

Zakas N.C. The Principles of Object-Oriented Javascript

  • Файл формата pdf
  • размером 3,65 МБ
  • Добавлен пользователем
  • Отредактирован
Zakas N.C. The Principles of Object-Oriented Javascript
No Starch Press, 2014. — 122 p. — ISBN: 978-1-59327-540-2.
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.
PrimiTive and reference TyPes
What Are Types?
Primitive Types.
Identifying Primitive Types.
Primitive Methods.
Reference Types.
Creating Objects.
Dereferencing Objects.
Adding or Removing Properties.
Instantiating Built-in Types.
Literal Forms.
Object and Array Literals.
Function Literals.
Regular Expression Literals.
Property Access.
Identifying Reference Types.
Identifying Arrays.
Primitive Wrapper Types.
Summary.
funcTions
Declarations vs .Expressions.
Functions as Values.
Parameters.
Overloading.
x Contents in Detail.
Object Methods.
The this Object.
Changing this.
Summary.
undersTanding objecTs
Defining Properties.
Detecting Properties.
Removing Properties.
Enumeration.
Types of Properties.
Property Attributes.
Common Attributes.
Data Property Attributes.
Accessor Property Attributes.
Defining Multiple Properties.
Retrieving Property Attributes.
Preventing Object Modification.
Preventing Extensions.
Sealing Objects.
Freezing Objects.
Summary.
consTrucTors and ProToTyPes.
Constructors.
Prototypes.
The [[Prototype]] Property.
Using Prototypes with Constructors.
Changing Prototypes.
Built-in Object Prototypes.
Summary.
inheriTance.
Prototype Chaining and Object .prototype.
Methods Inherited from Object .prototype.
Modifying Object .prototype.
Object Inheritance.
Constructor Inheritance.
Contents in Detail.
Constructor Stealing.
Accessing Supertype Methods.
Summary.
objecTPaTTerns.
Private and Privileged Members.
The Module Pattern.
Private Members for Constructors.
Mixins.
Scope-Safe Constructors.
Summary.
  • Чтобы скачать этот файл зарегистрируйтесь и/или войдите на сайт используя форму сверху.
  • Регистрация