JavaScript Objects The Boolean Object- Prototype - Javascript Objects

What is JavaScript Boolean object - Prototype?

The prototype property permits you to add properties and methods to any object ( Boolean, Number, Date and String etc.).

Note − This Prototype is a global property which is available mostly with all the objects.


You can use the below syntax to use Prototype.


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


JavaScript Boolean Prototype Output

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

Javascript Objects Topics