Answers for "take a first two catecters of a string javascript"

-2

reactjs cut part of string

var str = "Hello world!";

var res = str.substring(1, 4);

// res value is "ell"
Posted by: Guest on July-19-2020

Code answers related to "take a first two catecters of a string javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language