Split Strings with splits

Tell us what’s happening:

hi guys , could help me plzzzz

Your code so far

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

// Only change code below this line.

array = string;

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.

Link to the challenge:
https://www.freecodecamp.org/challenges/split-strings-with-split

You should split the string by its spaces.

What have you tried?

var string = “Split me into an array”;
var array = [];

// Only change code below this line.

array = string.split(’ ');

i solved this problem , this mistake was in (’’) i have to make space between single quotation ,
I did not pay attention to this anymore
Thanks for paying attention

1 Like