I\'m curious what the difference is between the following OOP javascript techniques. They seem to end up doing the same thing but is one considered better than the other?
here is an article about this in general Book inharets from Book.prototype. In first example you add function to getTitle Book.prototype