JavaScript & jQuery Tutorials

JS Home Right Arrow JS Reference Right Arrow String Right Arrow prototype

prototype  String  class property

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



  

go to home page Homepage go to top of page Top