How to Use Text Processing with Strings

Instance properties

These properties are defined on String.prototype and shared by all String instances.

String.prototype.constructor

The constructor function that created the instance object. For String instances, the initial value is the String constructor.

These properties are own properties of each String instance.

length

Reflects the length of the string. Read-only.