JavaScript Objects, Prototypes, and Classes
Dig deeply into creating with prototypes using inheritance including constructor functions and classes. Gain a deep understanding of what happens with prototypes behind-the-scenes when creating objects and working with inheritance.
What you'll learn
Objects, prototypes, and classes are extensively used in JavaScript programming. Understanding each of them beyond a surface level will help you more deeply understand the foundations of JavaScript. In this course, JavaScript Objects, Prototypes, and Classes, you will learn the foundations of creating and working with objects including a deeper understanding of how JavaScript works with regards to objects and inheritance. First, you will see different ways to create objects and properties and how to work with them, including modifying property descriptors, using constructor functions, working with getters and setters, and more. Next, you will discover what prototypes are, how prototypes and prototypal inheritance work in JavaScript, and some of the hidden complexities of prototypes. Finally, you will explore how to create objects and handle inheritance using classes. When you’re finished with this course, you will have the skills and knowledge of JavaScript Objects, Prototypes and Classes needed to create powerful and well structured applications that take advantage of the dynamic power of JavaScript.
Table of contents
- Introduction 1m
- Getting Started 3m
- Using Object Literals to Create JavaScript Objects 2m
- The Dynamic Nature of JavaScript 2m
- Adding Functions to Objects 2m
- Object Literal Property Shorthand 3m
- Object Literal Method Declaration Shorthand 1m
- Inspecting Object Properties with Object.keys() and for...in 2m
- Object Equality and the Object.is() Function 5m
- Object Assign and Immutability 4m
- Using Constructor Functions to Create Objects 6m
- Using Object.create() 2m
- Summary 1m