Learning Object Oriented JavaScript [Video]

Learning Object Oriented JavaScript [Video]

Learning
Ben Fhala

Optimize your code with object oriented JavaScript – follow this video course and learn a range of JavaScript design patterns that will simplify complex code
$63.75
RRP $74.99
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Video Details

ISBN 139781783554331
Course Length2 Hours 47 minutes

Video Description

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!

Style and Approach

Get object-oriented with this course, which cuts down long debates on theory and takes you on a journey using hands-on tools, features, and ways to improve your productivity using OOP techniques.

Table of Contents

Creating a Clock
Setting Up the HTML and CSS
Knowing When the Document is Loaded
Understanding What Objects Are
The Difference between Browsers
Tying Up Loose Ends
Object-Oriented Programming
Building with Objects
Scoping for Your Scope: β€˜this’ not β€˜that’
Constructing a Constructor
Reusing Objects
Prototype
Creating Methods with the Prototype
Augmenting Built-in Objects
Static Properties and Methods
Moving Our Code into a Namespace
Inheritance
Functions that Have Functions
Inheriting Your Parents' Belongings
Creating a Polyfill for Object.create
Overriding Properties and Methods
Creating an Alarm Clock
Events and Callbacks
Turning DIVs into Editable Content in HTML5
Listening to Events
Setting the Alarm Time Dynamically
Dispatching Events
Custom Callbacks

What You Will Learn

  • Customize the built-in objects to create a digital clock
  • Explore the world of prototypes to leverage the functionality of objects
  • Dive into the world of objects, which can talk and see each other through events and callbacks
  • Shed the traditional methods and work with constructors and scopes
  • Make your code more efficient and productive with the use of methods, properties, and inheritance

Authors

Screenshots

Table of Contents

Creating a Clock
Setting Up the HTML and CSS
Knowing When the Document is Loaded
Understanding What Objects Are
The Difference between Browsers
Tying Up Loose Ends
Object-Oriented Programming
Building with Objects
Scoping for Your Scope: β€˜this’ not β€˜that’
Constructing a Constructor
Reusing Objects
Prototype
Creating Methods with the Prototype
Augmenting Built-in Objects
Static Properties and Methods
Moving Our Code into a Namespace
Inheritance
Functions that Have Functions
Inheriting Your Parents' Belongings
Creating a Polyfill for Object.create
Overriding Properties and Methods
Creating an Alarm Clock
Events and Callbacks
Turning DIVs into Editable Content in HTML5
Listening to Events
Setting the Alarm Time Dynamically
Dispatching Events
Custom Callbacks

Video Details

ISBN 139781783554331
Course Length2 Hours 47 minutes
Read More