Toggle navigation
Genres
Frontend (2)
JavaScript (6)
Database (2)
Linux Server (3)
Web Apps (4)
Misc (4)
Search
List
New Tutorials
Last Modified Tutorials
</>
Code examples
code
smiko
javascript
basic
035stringmethods_split.js
035stringmethods_split.js
/** * String methods: split */ var str, str_arr; str = "This is some sample string!"; str_arr = str.split(' '); console.log(str_arr); // [ 'This', 'is', 'some', 'sample', 'string!' ]
Reload page
Preview
W3C validation
Edit Code
JS Console