1//split into array of strings.
2var str = "Well, how, are , we , doing, today";
3var res = str.split(",");
1var myString = 'no,u';
2var MyArray = myString.split(',');//splits the text up in chunks
3
1var names = 'Harry ;Fred Barney; Helen Rigby ; Bill Abel ;Chris Hand ';
2
3console.log(names);
4
5var re = /\s*(?:;|$)\s*/;
6var nameList = names.split(re);
7
8console.log(nameList);
1parseFloat("16.5"); // 16.5
2parseInt("34.6"); // 34
3JSON.parse('{ "name":"John", "age":30, "city":"New York"}'); // {name: "John", age: 30, city: "New York"}