JavaScript Objects The Strings Object- Prototype - Javascript Objects

What is JavaScript Object - prototype?

The prototype property permits 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 most of the objects.


Use the below syntax to use Prototype.


Try the below example to use the prototype property to add a property to an object.


Book title is : Perl

Book author is : Mohtashim

Book price is : 100

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd Protection Status

Javascript Objects Topics