DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
js first letter to uppercase
function capitalizeFirstLetter(name) { return name.replace(/^./, name[0].toUpperCase()) }
Source by flaviocopes.com #
PREVIOUS
NEXT
Tagged:
#js
#letter
#uppercase
ADD COMMENT
Topic
COMMENT
Name
2+8 =
Submit