prototype  String  class property JS Home  <<  JS Reference  <<  String  <<  prototype

Description

Enables property assignment to objects of type String.

  • Like all class properties prototype should be used on the class rather than an instance of the class.

Syntax

Signature Description
String.prototypeEnables property assignment to objects of type String.

Parameters

None.

Examples

The code below displays the String prototype.


alert('String prototype is ' + String.prototype);

Press the button below to action the above code:

Related Tutorials

JavaScript Basic Tutorials - Lesson 8 - Strings