Tell us what’s happening:
Split array returns strings enclosed by single quotes, which I think should be equivalent to the double quotes tested for?
My solution seems to be the same as that given by the help system
Your code so far
function splitify(str) {
// Only change code below this line
\W searches for non-word characters
const splitted = str.split(/\W/)
console.log(splitted);
// Only change code above this line
}
splitify("Hello World,I-am code");
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Challenge Information:
Functional Programming - Split a String into an Array Using the split Method