split one word string js code example Example: js string to array var myString = 'no,u'; var MyArray = myString.split(',');//splits the text up in chunks