GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.geeksforgeeks.org — JavaScript String split() Method - GeeksforGeeks JavaScript String split() MethodLast Updated : 16 Jan, 2026 The JavaScript split() method is used to break a string into an array of substrings based on a given separator. It helps in processing and manipulating string data more easily.
Syntaxstr.split( separator, limit );Parameters
Return ValueThis function returns an array of strings that is formed after splitting the given string at each point where the separator occurs. [Example 1]: The split() function divides the string "Geeks for Geeks" at "for", creating an array with two parts: ['Geeks ', ' Geeks']. It separates based on the given delimiter.
[Example 2]: The function split() creates an array of strings by splitting str wherever " " occurs.
Comment Explore |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |