<script>
window.onload = start;
function start() {
word(["S"+"U"+"Z"],["D"+"A"+"R"])
}
function word(a,b) {
var letters = a+b
for (var i = 0; i < letters.length; i++) {
}
document.getElementById("utskrift").innerHTML=letters
}
</script>
Okay so this code works completely fine. My letters come out as "SUZDAR", but i wanna be able to remove the "+" symbol in my argument "Word" and replace it with commas. so the argument becomes (["S","U","Z"],["D","A","R"]). The question is, how do i remove the commas and get the same output as i currently have without the "+" symbols. I dont know how to use the split function here.