purpose of the split on a string in js code example
Example 1: split javascript
var str = "12,15,16,78,59";
var res = str.split(",");
console.log(res[0]); // result: 12
console.log(res[2]); // result: 16
Example 2: how to split a string in javascript
strName.split(); // My code