how to return a sspecific part of string javascript code example
Example 1: javascript delete first character in string
var oldStr ="Hello";
var newStr = oldStr.substring(1); //remove first character "ello"
Example 2: reactjs cut part of string
var str = "Hello world!";
var res = str.substring(1, 4);
// res value is "ell"