Tell us what’s happening:
i am stuck here
Your code so far
function sentensify(str) {
// Add your code below this line
var arr=str.split(/W+/);
var str = arr.join(" ");
return str;
// Add your code above this line
}
sentensify("May-the-force-be-with-you");
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/functional-programming/combine-an-array-into-a-string-using-the-join-method