how to split a string in array in javascript code example Example: split array by character javascript s.split("");