JavaScript obtient les 10 premiers caractères de la chaîne
var str = "Hello world That is reallly neat!";
var res = str.substring(0, 5);//get first 5 chars
Grepper
var str = "Hello world That is reallly neat!";
var res = str.substring(0, 5);//get first 5 chars
var str = "Hello world!";
var res = str.substring(1, 4); //ell
var str = "Hello world!";
var res = str.substring(1, 4); //ell