Functional Programming - Split a String into an Array Using the split Method

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 :frowning:

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

Take a look at the instructions - what is the expected value returned by function, what your function returns?

You can wrap the call at the end in the console.log(), to make sure you look at the right value.

console.log(splitify("Hello World,I-am code"));

is this line in your code?

anyway, strings are the same, be that they show with single quotes or double quotes, that is just a look thing