split string in array on character js code example Example: split array by character javascript s.split("");