Join Strings with join (Challenge 246 Help)

Hey guys, I have no idea why this won’t clear. What am I missing? Thanks

Chase

What I have so far

var joinMe = ["Split","me","into","an","array"];
var joinedString = '';

// Only change code below this line.
var joinedString = joineMe.join(/\s+/g);

Your browser information:

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

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

The argument of join() should be a string.

1 Like

@ppiron right. And, the var joinedString = joineMe.join(/\s+/g);. should be joinMe.join(' ') not joineMe.

1 Like