javascript substring array code example
Example 1: python string to array
>>> text = 'a b c'
>>> text = text.split(' ')
>>> text
[ 'a', 'b', 'c' ]
Example 2: substring javascript
var str = "Hello world!";
var res = str.substring(1, 4); //ell
>>> text = 'a b c'
>>> text = text.split(' ')
>>> text
[ 'a', 'b', 'c' ]
var str = "Hello world!";
var res = str.substring(1, 4); //ell