target left part of a splitted array code example
Example 1: split every n character js
var str = 'abcdefghijkl';
console.log(str.match(/.{1,3}/g));
Example 2: in javascript how to split string
var str = 'It iS a 5r&e@@t Day.'
var array = str.split(" ");
print(array);
var str = 'It iS a 5r&e@@t Day.'
var array = str.split(" ",2);
print(array);