Answers for "how to get first 3 letter in a string in javascript"

12

javascript get first character of string

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

js substring first 4 numbwe

mystring = "9862 ....... -pack size 1 - SST Unspun Label (Roll) CAT#: 9862";

mystring = mystring.substring(0, 4);

alert(mystring.trim());
Posted by: Guest on December-11-2020

Code answers related to "how to get first 3 letter in a string in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language