
The Principles of Object-Oriented JavaScript
Nicholas C. Zakas(Author)
No Starch Press
Published on 14. February 2014
120 pages
978-1-59327-576-1 (ISBN)
System requirements
for ePUB without DRM
E-Book Single Licence
You are acquiring a single user licence for this eBook, which you might not transfer. [L]
Available for download
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
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.
More details
Language
English
Place of publication
New York
United States
Product notice
Reflowable
File size
1,43 MB
ISBN-13
978-1-59327-576-1 (9781593275761)
Schweitzer Classification
Other editions
Additional editions

Nicholas Zakas
The Principles of Object-Oriented JavaScript
Book
02/2014
1st Edition
No Starch Press
€24.00
Article in reprint
Person
Nicholas C. Zakas is a software engineer at Box and is known for writing on and speaking about the latest in JavaScript best practices. He honed his experience during his five years at Yahoo!, where he was principal frontend engineer for the Yahoo! home page. He is the author of several books, including Maintainable JavaScript (O'Reilly Media, 2012) and Professional JavaScript for Web Developers (Wrox, 2012).
Content
- Intro
- The Principles of Object-Oriented Javascript
- About the Author
- About the Technical Reviewer
- Foreword
- Acknowledgments
- Introduction
- Who This Book Is For
- Overview
- Help and Support
- 1. 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
- 2. Functions
- Declarations vs. Expressions
- Functions as Values
- Parameters
- Overloading
- Object Methods
- The this Object
- Changing this
- The call() Method
- The apply() Method
- The bind() Method
- Summary
- 3. 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
- 4. Constructors and Prototypes
- Constructors
- Prototypes
- The [[Prototype]] Property
- Using Prototypes with Constructors
- Changing Prototypes
- Built-in Object Prototypes
- Summary
- 5. Inheritance
- Prototype Chaining and Object.prototype
- Methods Inherited from Object.prototype
- valueOf()
- toString()
- Modifying Object.prototype
- Object Inheritance
- Constructor Inheritance
- Constructor Stealing
- Accessing Supertype Methods
- Summary
- 6. Object Patterns
- Private and Privileged Members
- The Module Pattern
- Private Members for Constructors
- Mixins
- Scope-Safe Constructors
- Summary
- Index
- About the Author
- Copyright
System requirements
File format: ePUB
Copy protection: without DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Use a reader that can handle the file format ePUB, such as Adobe Digital Editions or FBReader – both free (see eBook Help).
- Tablet/Smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePUB works well for novels and non-fiction books – i.e., 'flowing' text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook does not use copy protection or Digital Rights Management
For more information, see our eBook Help page.