| See also: capitalize | |
Captitalizes the first character of a string.
JSV_capitalizeFirstCharacter(expS)
expS.capitalizeFirstCharacter()
The capitalizeFirstCharacter function returns the string with the first character in uppercase and all other characters in lowercase.
The capitalizeFirstCharacter function uses the following arguments.
| Argument | Description |
| expS | String containing the word to be capitalized. |
n/a
n/a
The following lines of code
myStatement = "baWana";
document.write( JSV_capitalizeFirstCharacter(myStatement) );
var myStatement = "be there or be square";
document.write( JSV_capitalizeFirstCharacter(myStatement) );
produce
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.