Answers for "how to get the first letters of a string in js"

12

javascript get first character of string

var str="Hello Folks!"
var firstStringChar = str.charAt(0); //H
Posted by: Guest on August-01-2019
1

jquery get first character of string

var header = $('.time'+col).text();
alert(header.charAt(0));
Posted by: Guest on June-03-2020

Code answers related to "how to get the first letters of a string in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language