JavaScript Boolean prototype
The prototype property is used to allow us to add new properties and methods to booleans. This property is applicable to all JavaScript objects.
Syntax:-
Its syntax is:- Boolean.prototype.name = value