Learning Object-Oriented JavaScript

Acquire advanced JavaScript skills and create complex and reusable applications
4.6 (31 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
404 students enrolled
$75
Take This Course
  • Lectures 23
  • Contents Video: 3 hours
  • Skill Level Intermediate Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 2/2015 English

Course Description

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!

About the Author

Ben Fhala discovered his passion for data visualization six years ago while he was working at Parsons in New York, in their data visualization department, PIIM. He is the owner of the online video training school, and an Adobe ACP. He enjoys spending most of his time learning and teaching and has a love for visual programming and visualization in general. Ben has had the honor of developing applications for members of the US Congress, Prime Ministers, and Presidents around the world.

He has built many interactive experiences for companies such as Target, AT & T, Crayola, Marriott, Neutrogena, and Nokia. He has technically directed many award-winning projects and has been part of teams that have won three Agency of the Year awards. Among Ben's publications are Packt’s HTML5 Graphing and Data Visualization Cookbook.

What are the requirements?

  • 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.

What am I going to get from this course?

  • 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

What is the target audience?

  • This course is intended for JavaScript developers as an easy gateway into the world OOP by presenting a simple project and then enhancing it through object-oriented mythologies.

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Creating a Clock
08:24

This is our setup lesson to start working in JavaScript.

03:47

Before we can manipulate any data in our document, we need to know whether it's completely loaded.

06:52

This video provides a quick revision of the basic theory of JavaScript.

04:43

Unfortunately, different brand servers react differently to our JavaScript. We will see how we can work around it.

05:32

Our clock is almost ready; we just need to format it and get it to tick. That's exactly what we will do in this video.

Section 2: Object-Oriented Programming
08:40

The whole point of object-oriented programming is to enable you to cluster concepts into buckets.

07:34

As a traditional developer, there was no relevance to relativism. One of the biggest advantages of working in an object-oriented mindset is the concept of relative relationships.

07:19

In the previous video, we created our first object that leverages the built-in object. The next step is the process to actually create a complete standalone object.

11:47

One of the biggest features of object oriented programming is the ease of reusing code. Once you complete building an object, you don't even need to remember or know how it actually works. All you need to do is remember how to work with it.

Section 3: Prototype
07:12

So far, everything that we did worked perfectly as long as we weren't planning on expanding our object to be able to work with other objects.

07:16

We don't need to learn new techniques to learn another way to leverage our new knowledge of the prototype. Every built-in object has a prototype as well, and we can automatically add features to any object, including built-in objects, by expanding and adding more methods into the prototype.

14:09

In the previous sections, we focused on the functions and properties that belong to objects, but there are different types of properties and methods that belong to the actual constructor.

05:30

As you start building your own objects, you're going to encounter a problem at some point of time. A common problem occurs when you create a function name that has already been created by someone else.

Section 4: Inheritance
04:17

Every function in JavaScript, just by being a function, is a type of object (a Function Object), and this means that every function has built-in methods.

09:45

In the previous sections, we've been creating objects and making them more dynamic. Apart from expanding features of other objects with object-oriented programming in JavaScript, we can tell an object to lean on another object for methods and properties.

05:30

The Object.create message that we used in the previous section to create an inheritance chain between our objects is a modern update to JavaScript and does not exist in older versions of it.

07:37

Now that we have object-oriented inherited objects, it’s time to update a specific method or change it while keeping all the rest.

07:23

In the course of the previous sections, we've been expanding our capabilities as object-oriented programmers with inheritance. It's time for us to practice our new skills.

Section 5: Events and Callbacks
05:02

One of the new cool features in HTML5 is the capability of automatically turning HTML elements to become live editable content in the browser.

07:21

It's time for us to move into events, a completely new topic and capability in object-oriented programming.

05:46

In the previous video, we learned how to listen to events. In this section, we will continue to work with those events.

06:05

Not every object has a built-in event dispatcher, and the most common way to create a notifier mechanism in JavaScript is by using callbacks.

10:48

Now that we have reached the end of the course, let’s see how we can cut down on the number of intervals in our clock.

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Packt Publishing, Tech Knowledge in Motion

Over the past ten years Packt Publishing has developed an extensive catalogue of over 2000 books, e-books and video courses aimed at keeping IT professionals ahead of the technology curve. From new takes on established technologies through to the latest guides on emerging platforms, topics and trends – Packt's focus has always been on giving our customers the working knowledge they need to get the job done. Our Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.

Ready to start learning?
Take This Course