Blog

In JavaScript Write a Function to Split a String USING split();
Posted on June 5, 2015 in Algorithms, JavaScript by Matt Jennings

function mySplit(string, delimiter) {
  var strArray = string.split(delimiter);
  return strArray;
}

console.log(mySplit("hello world and stuff", " "));

Leave a Reply