String Methods

Terminology

Prototype
A base object that other objects can inherit. In the case of strings, methods such as string.prototype.substr() and string.prototype.trim() are inherited using prototypes.
Property
A fancy term for a variable that lives inside an object and is most often accessed using dot notation. Example: string.length.
Method
A fancy term for a function that lives inside an object and is most often accessed using dot notation. Example: string.trim().

Key Takeaways