JS Split Text di Spaces

var string = "text to split";
var words = string.split(" ");
Rich Rhinoceros