// find words separated by whitespace in a string js var text = "hoi how are you"; var arr = text.split(/s+/)