I don\'t understand this behaviour:
var string = \'a,b,c,d,e:10.\'; var array = string.split (\'.\');
I expect this:
consol
Because your string is composed of 2 part :
1 : a,b,c,d,e:10
2 : empty
If you try without the dot at the end :
var string = 'a,b,c:10'; var array = string.split ('.');
output is :
["a,b,c:10"]