Object-oriented Concepts in JavaScript
Classes and object-oriented design are frequently used in JavaScript. This course will teach you how to use JavaScript classes to create object-oriented designs, as well as the prototypes and constructor functions upon which classes are built.
What you'll learn
JavaScript classes and object-oriented concepts are core to many JavaScript applications today, but JavaScript is not a typical object-oriented language; rather it is a loosely-typed, prototype-based language. In this course, Object-oriented Concepts in JavaScript, you’ll learn how to use classes to create object-oriented designs in JavaScript. First, you’ll explore what object-oriented programming is, what JavaScript prototypes are, and how to create object-oriented designs with constructor functions and prototypes . Next, you’ll discover how to inherit properties and behavior from other constructor functions . Finally, you’ll learn how to create object-oriented designs with JavaScript classes and how to extend classes to inherit properties and behavior from Parent classes. When you’re finished with this course, you’ll have the skills and knowledge of object-oriented programming in JavaScript needed to understand, create, and work with JavaScript classes and object-oriented JavaScript projects.
Table of contents
- Introduction 1m
- Using JavaScript Constructor Functions 5m
- Understanding the new Keyword 1m
- Adding Methods to a Constructor Function's Prototype 5m
- A Graphical Overview of Constructor Functions 2m
- Creating Getter and Setter Properites 7m
- Creating Static Properties 3m
- Creating Static Methods 3m
- Creating Private Properties with Closures 5m
- Creating Private Methods with Closures 5m