Been browsing SO for some time since I picked up a programming course, and have found it to be an awesome community and great place for knowledge.

Currently I'm stuck with a JavaScript function that I'm trying to clean up.

I need to have names input into an array, and then when I run a 'start' function, it would display the amount of names as a number, and then show each name on a new line.

I've managed to get it working, however there is a ',' character at the start of each line. I've tried various ways to get around it (using replace and split + join) but had no luck so far.

```
var arrName = [];
var custName;

function start(){
    var totalName = 0;
    var count = 0;

    document.getElementById("output").innerHTML = " ";

    while(count < arrName.length){
        totalName++;
        count++;
    };
    document.getElementById("output").innerHTML = "The total names in the array are: " + totalName + "<br />" + arrName;
}

function addName(){
    custName = document.getElementById("custname").value;

    if(!custName){
        alert("Empty Name!");
    }
    else{
        arrName.push(custName + "<br>");
        return custName;}
}

```