DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
js get first letter of string
var x = 'some string'; alert(x.charAt(0)); // alerts 's'
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#js
#letter
#string
ADD COMMENT
Topic
COMMENT
Name
8+3 =
Submit