The prototype property allows you to add properties and methods to any object (Number, Boolean, String and Date etc.).
Note − Prototype is a global property which is available with almost all the objects.
Its syntax is as follows −
object.prototype.name = value
Try the following example.
Book title is : Perl Book author is : Mohtashim Book price is : 100