Skip to content

Latest commit

 

History

History
16 lines (7 loc) · 608 Bytes

File metadata and controls

16 lines (7 loc) · 608 Bytes

AlgoCasts

  • Constructor - Javascript Boolean constructor method returns a reference to the Boolean function that created the instance's prototype.

  • boolean.constructor() - syntax

  • returns the function that created this object's instance.

  • Prototype - property that allows you to add properties and methods to any object (Number, Boolean, String, Date). Prototype is a global property and it is available with almost all the objects.

  • object.prototype.name = value - syntax

  • var val = new String(string); - the string parameter is a series of characters that has been properly encoded.