Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
String.prototype.split() Method in String Class of Javascript Syntax with Examples
2050 Views
Usage 
Split method of String prototype is used to seperate the string to array using delimiter/separator.
Syntax 
Spring.split(separator);
Example
var str = "raja|ram|riji|vijay|vidhyaa";
var arr = str.split("|");

document.write(arr);
Output 
raja,ram,riji,vijay,vidhyaa
Best Lessons of "Javascript Syntax with Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details