Answers for "show first characters of string in javascript"

1

get everything after the first character javascript

var val = 'asdasd:111122:123123123';
var response = val.substring(val.indexOf(":"));

alert(response); // ":111122:123123123"
Posted by: Guest on September-16-2020
2

js sting first letter

var x = 'some string';
alert(x.charAt(0)); // alerts 's'
Posted by: Guest on July-19-2020

Code answers related to "show first characters of string in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language