Tell us what’s happening:
I am using the right code here but it will not pass me
Your code so far
function splitify(str) {
// Add your code below this line
return str.split(/\W+/gi)
// Add your code above this line
}
console.log(splitify("This.is.a-sentence"));
**Link to the challenge:**
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/functional-programming/split-a-string-into-an-array-using-the-split-method