Split Strings with split

Tell us what’s happening:

Your code so far

var string = "Split me into an array";
var array = [];

// Only change code below this line.

 array = string.split(' ');

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0.

Link to the challenge:

I wanted to post my answer and wasn’t sure how ?
I managed to pass through the challenge, but I am still not sure how to post my code.

Understood thank you for the clarification Randell Dawson!

This code makes an array with every string worg in particulary. Split method does what it says: splits strings and put the pieces into an array. The tricky thing here is the space between the quotes:
-if it has no space, then makes an array with every character, including spaces between the words
-if it has a space between, like in the code above, it makes an array with every word, not including the spaces.

The result will be :

array = [‘Split’ , ‘me’ , ‘into’ , ‘an’ , ‘array’];