O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Learning Object-Oriented JavaScript

Video Description

Acquire advanced JavaScript skills and create complex and reusable applications

About This Video

  • Discover the important concepts of object-oriented programming (OOP) and make your life easier, more enjoyable, and more focused on what you love doing—creating

  • Develop reusable code while creating three different clocks, a classic clock, a text clock, and an alarm clock.

  • Utilize the advantages of using constructors, methods, and properties to become an expert

  • In Detail

    One of the most common issues faced by JavaScript developers is what is known in the industry as “spaghetti code.” This issue is common when developers don't know how OOP works, as they end up creating layers of code on top of each other, resembling spaghetti. The goal of OOP is to organize your code and make your life easier.

    This course will help you change some common coding practices and empower you by giving you the tools you need for more efficient development.

    You start with building a simple digital clock and use this as the case sample for the course. Then, we begin exploring the object-oriented tools in JavaScript such as the constructor, scope, methods, and properties. Next, we dive even deeper as we explore the wonderful world of prototypes, static methods and properties, and namespaces. We then turn our attention to inheritance and finally end the course with a section to dedicated events and callbacks. As we explore what they are and how to use them, we complete our sample by creating a fully usable alarm clock.

    With this course, you will be an expert in OOP with JavaScript in under 3 hours!