subbstring js code example
Example 1: substring javascript
var str = "Hello world!";
var res = str.substring(1, 4); //ell
Example 2: straforma in string js
var x = new String("Una nuova stringa");
var str = "Hello world!";
var res = str.substring(1, 4); //ell
var x = new String("Una nuova stringa");