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.

Syntax:

You can use the below syntax to use Prototype.

Example:

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


Output:

JavaScript Boolean Prototype Output


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

Javascript Objects Topics