prototype
String
class propertyS2C Home
« Globals « 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.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