![]() The former isolates and uppercases the first character from the left of the string, and the later slices the string leaving the first character. The easiest way to do is to use two JavaScript functions together: charAt and slice. There are many ways to capitalize the first letter of a string in JavaScript. ![]() One of the most frequently used operations with strings is to convert the first character of a string to uppercase, and leave the rest of string as it is.
0 Comments
Leave a Reply. |