
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.
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.
Have a question but don't want to ask it publicly? If you are a prime member just ask right here and we will get back to you within 48 hours. Not prime yet? no worries you can ask publicly below.