Search
 
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
Name
6+3 =