Built-In Namespace String
| Method Attributes | Method Name and Description |
|---|---|
|
Returns this string with the char at first position in uppercase. |
Method Detail
String#capitalize()
Returns this string with the char at first position in uppercase.
Example of use:
"the brown Fox jumped over the lazy Dog".capitalize(); // = "The brown Fox jumped over the lazy Dog"
Defined in: String-capitalize.js.
- Returns:
- capitalized string.