This is a demonstration of adding a method to the String object using the prototype property. Here is the result: