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!
Preview in Mapt
Code Files

Object-Oriented JavaScript - Third Edition

Ved Antani, Stoyan Stefanov

1 customer reviews
Learn everything you need to know about object-oriented JavaScript with this comprehensive guide. Enter the world of cutting-edge development!
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Object-Oriented JavaScript - Third Edition Book Cover
Object-Oriented JavaScript - Third Edition
$ 35.99
$ 25.20
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00
Buy 2 for $35.00
Save $30.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

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
From 1 reviews

Read More Reviews

Recommended for You

JavaScript Unlocked Book Cover
JavaScript Unlocked
$ 23.99
$ 16.80
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00
Mastering JavaScript Book Cover
Mastering JavaScript
$ 35.99
$ 25.20
JavaScript and JSON Essentials Book Cover
JavaScript and JSON Essentials
$ 17.99
$ 12.60
Learning Angular 2 Book Cover
Learning Angular 2
$ 31.99
$ 22.40
Mastering JavaScript Design Patterns Book Cover
Mastering JavaScript Design Patterns
$ 26.99
$ 18.90