split string based upon character javascript code example Example: split array by character javascript s.split("");