prototype String class property
JS Home <<
JS Reference <<
String <<
prototype
Description
Enables property assignment to objects of type String.
- Like all class properties
prototypeshould be used on the class rather than an instance of the class.
Syntax
| Signature | Description |
|---|---|
String.prototype | Enables property assignment to objects of type String. |
Parameters
None.
Examples
The code below displays the String prototype.
alert('String prototype is ' + String.prototype);
Related Tutorials
JavaScript Basic Tutorials - Lesson 8 - Strings
