freeCodeCamp Challenge Guide: Join Strings with Join

freeCodeCamp Challenge Guide: Join Strings with Join
0

#1

var joinMe = [“Split”,“me”,“into”,“an”,“array”];
var joinedString = joinMe.join("");

// Only change code below this line.

joinedString = joinMe.join(" ");


#2

What is the purpose of

var joinedString = ‘’;
here? If you still go ahead and assign
joinedString = joinMe.join(’ ');
I would assume that this overrides the first joinedString assignment and makes it unnecessary to include in the first place.

#3

My take:

var joinMe = [“Split”,“me”,“into”,“an”,“array”];
var joinedString = ‘’;

// Only change code below this line.

joinedString = joinMe.join(" ");