Object-Oriented JavaScript - Third Edition

Learn everything you need to know about object-oriented JavaScript with this comprehensive guide. Enter the world of cutting-edge development!

Object-Oriented JavaScript - Third Edition

Learning
Ved Antani, Stoyan Stefanov

Learn everything you need to know about object-oriented JavaScript with this comprehensive guide. Enter the world of cutting-edge development!
$35.99
$44.99
RRP $35.99
RRP $44.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2017

With unlimited access to a constantly growing library of over 4,000 eBooks and Videos, a subscription to Mapt gives you everything you need to learn new skills. Cancel anytime.

Code Files
Free Sample

Book Details

ISBN 139781785880568
Paperback550 pages

Book Description

JavaScript is an object-oriented programming language that is used for website development. Web pages developed today currently follow a paradigm that has three clearly distinguishable parts: content (HTML), presentation (CSS), and behavior (JavaScript). JavaScript is one important pillar in this paradigm, and is responsible for the running of the web pages.

This book will take your JavaScript skills to a new level of sophistication and get you prepared for your journey through professional web development. Updated for ES6, this book covers everything you will need to unleash the power of object-oriented programming in JavaScript while building professional web applications. The book begins with the basics of object-oriented programming in JavaScript and then gradually progresses to cover functions, objects, and prototypes, and how these concepts can be used to make your programs cleaner, more maintainable, faster, and compatible with other programs/libraries.

By the end of the book, you will have learned how to incorporate object-oriented programming in your web development workflow to build professional JavaScript applications.

Table of Contents

Chapter 1: Object-Oriented JavaScript
A bit of history
ECMAScript 5
ECMAScript 6
Object-oriented programming
OOP summary
Setting up your training environment
Summary
Chapter 2: Primitive Data Types, Arrays, Loops, and Conditions
Variables
Operators
Primitive data types
Primitive data types recap
Arrays
Conditions and loops
Comments
Exercises
Summary
Chapter 3: Functions
What is a function?
Default parameters
Rest parameters
Spread operators
Scope of variables
Block scope
Functions are data
Closures
IIFE versus blocks
Arrow functions
Exercises
Summary
Chapter 4: Objects
From arrays to objects
Object properties and attributes
ES6 object methods
Destructuring
Built-in objects
ES6 array methods
Lexical this in arrow functions
Exercises
Summary
Chapter 5: ES6 Iterators and Generators
For...of loop
Iterators and iterables
Generators
Collections
Summary
Chapter 6: Prototype
The prototype property
Using the prototype's methods and properties
Augmenting built-in objects
Exercises
Summary
Chapter 7: Inheritance
Prototype chaining
Inheriting the prototype only
Uber - access to the parent from a child object
Isolating the inheritance part into a function
Copying properties
Heads-up when copying by reference
Objects inherit from objects
Deep copy
Using object() method
Using a mix of prototypal inheritance and copying properties
Multiple inheritance
Parasitic inheritance
Borrowing a constructor
Case study - drawing shapes
Exercises
Summary
Chapter 8: Classes and Modules
Defining classes
Subclassing
Modules
Summary
Chapter 9: Promises and Proxies
Asynchronous programming model
JavaScript call stack
Promises
Summary
Chapter 10: The Browser Environment
Including JavaScript in an HTML page
BOM and DOM - an overview
BOM
DOM
Events
XMLHttpRequest
Exercises
Summary
Chapter 11: Coding and Design Patterns
Coding patterns
Design patterns
Summary
Chapter 12: Testing and Debugging
Unit testing
JavaScript debugging
Summary
Chapter 13: Reactive Programming and React
Reactive programming
React
Virtual DOM
Installing and running react
Summary

What You Will Learn

  • Apply the basics of object-oriented programming in the JavaScript environment
  • Use a JavaScript Console with complete mastery
  • Make your programs cleaner, faster, and compatible with other programs and libraries
  • Get familiar with Iterators and Generators, the new features added in ES6
  • Find out about ECMAScript 6’s Arrow functions, and make them your own
  • Understand objects in Google Chrome developer tools and how to use them
  • Use a mix of prototypal inheritance and copying properties in your workflow
  • Apply reactive programming techniques while coding in JavaScript

Authors

Table of Contents

Chapter 1: Object-Oriented JavaScript
A bit of history
ECMAScript 5
ECMAScript 6
Object-oriented programming
OOP summary
Setting up your training environment
Summary
Chapter 2: Primitive Data Types, Arrays, Loops, and Conditions
Variables
Operators
Primitive data types
Primitive data types recap
Arrays
Conditions and loops
Comments
Exercises
Summary
Chapter 3: Functions
What is a function?
Default parameters
Rest parameters
Spread operators
Scope of variables
Block scope
Functions are data
Closures
IIFE versus blocks
Arrow functions
Exercises
Summary
Chapter 4: Objects
From arrays to objects
Object properties and attributes
ES6 object methods
Destructuring
Built-in objects
ES6 array methods
Lexical this in arrow functions
Exercises
Summary
Chapter 5: ES6 Iterators and Generators
For...of loop
Iterators and iterables
Generators
Collections
Summary
Chapter 6: Prototype
The prototype property
Using the prototype's methods and properties
Augmenting built-in objects
Exercises
Summary
Chapter 7: Inheritance
Prototype chaining
Inheriting the prototype only
Uber - access to the parent from a child object
Isolating the inheritance part into a function
Copying properties
Heads-up when copying by reference
Objects inherit from objects
Deep copy
Using object() method
Using a mix of prototypal inheritance and copying properties
Multiple inheritance
Parasitic inheritance
Borrowing a constructor
Case study - drawing shapes
Exercises
Summary
Chapter 8: Classes and Modules
Defining classes
Subclassing
Modules
Summary
Chapter 9: Promises and Proxies
Asynchronous programming model
JavaScript call stack
Promises
Summary
Chapter 10: The Browser Environment
Including JavaScript in an HTML page
BOM and DOM - an overview
BOM
DOM
Events
XMLHttpRequest
Exercises
Summary
Chapter 11: Coding and Design Patterns
Coding patterns
Design patterns
Summary
Chapter 12: Testing and Debugging
Unit testing
JavaScript debugging
Summary
Chapter 13: Reactive Programming and React
Reactive programming
React
Virtual DOM
Installing and running react
Summary

Book Details

ISBN 139781785880568
Paperback550 pages
Read More

Read More Reviews