Answers for "Take one 1st three letter 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 "Take one 1st three letter in Javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language