02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoPrevious Video

Creating And Working with Methods

<p>A method is a function that is owned by an object. Before we move back to building a Google map we will see how to create methods. When we create our first method we will create it in the prototype property of JavaScript objects. At this stage it will be a magical component that would enable us to add new methods to objects. We create our method and now it is available to all instances of the object type we added this prototype.</p> <p>Once we create and see how to create a method we will return to our Google map sample and extend our functionality of our application by creating a custom object that would control the creation process.</p>

Call and Apply

Functions are objects. There probably the most primitive type in JavaScript. To show case this we will create an example working with scope.

08:55

Creating And Working with Methods

A method is a function that is owned by an object. We will create our method and now it is available to all instances of the object type we added this prototype.

08:51

Creating and Working with Properties

Functions are objects. There probably the most primitive type in JavaScript. To show case this we will create an example working with scope.

02:33

Adding methods to built in Objects

How do JavaScript prototypes work? Lets see them in action by showing you how you can add prototype methods by adding new methods to built in objects such as the Array object.

04:32

Inheritance

Extending the Built in JavaScript Objects using inheritance and the prototype.

12:43