SAPO::Utility.String->ucFirst

This method will lowercase the entire string and upercase the first letter of each word.

This is static method.

Syntax

SAPO.Utility.String.ucFirst(string)

Compatibility

All browsersYes

Depends

Input Parameters

  • (string) string : Input string

Sample

 http://js.sapo.pt/SAPO/Utility/String/sample/

Example

alert(SAPO.Utility.String.ucFirst('hello HERE I aM'));

Community feedback

Error: Failed to load processor AddComment
No macro or processor named 'AddComment' found