Search | Live Classes | Presentations | Lessons | FAQ | Terms.
Sign in

Adding a Function to an Instance in JavaScript

Keywords JavaScript, function, instance
Duration15 minutes
PresenterVenkat Subramaniam
CreatedJanuary 2014
DetailsIn addition to defining function for an entire class, we can quite easily add functions to select instances. This helps us to provide special features at an instance level and also replace functions, to ease testing with stubs, for example.
Access Plus
Adding a function to an instance in javascript