[JavaScript] Strings splitten

let s1 = "abc,def,ghi";

// String anhand des Trennzeichens "," splitten
let arr = s1.split(",");

for (let s in arr)
{
    console.log(arr[s]);
};