Answers for "grep first 2 character from string in javascript"

18

grep first 2 character from string in javascript

var str = "Hello world That is reallly neat!";
var res = str.substring(0, 5);//get first 5 chars
Posted by: Guest on July-09-2019
18

grep first 2 character from string in javascript

var str = "Hello world That is reallly neat!";
var res = str.substring(0, 5);//get first 5 chars
Posted by: Guest on July-09-2019

Code answers related to "grep first 2 character from string in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language