Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Split string into words, without punctuation

function splitify(str) {
  // Add your code below this line
  return str.split(/W/);
  // Add your code above this line
}
splitify("Hello World,I-am code");
Source by forum.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #Split #string #punctuation
ADD COMMENT
Topic
Name
9+1 =