How to split string in java script?

0 votes
116 views
asked Aug 15, 2013 in java script by BasicQuestion (1,355 points)
Hello

   How to split string in java script?

1 Answer

0 votes
answered Aug 19, 2013 by admin (8,115 points)

hi basic

      var str="How-are-you-doing-today?";

  var n=str.split("-");

...