I want to concatenate a string to display in a jquery alert. I've followed the instructions, which seem pretty basic, on posts such as this, however I'm not having any luck. 
For example, this jquery code
    //Validate field values
    var errors = "";
    if (inputArray[0].length != 8) {
        errors += "Life Master must be 8 digits"+'\\n';
    }
    if (inputArray[1].length != 3) {
        errors += "Market Segment must be 3 digist" + '\\n';
    }
    if (ValidateDate(inputArray[3])) {
        errors += "Invalid Effective Date" + '\\n';
    }
    if (ValidateDate(inputArray[4])) {
        errors += "Invalid Cancel Date";
    }
    if (errors != "") {
        errors = "Please check the following:" + '\\n' + errors;
        alert(errors);
        return false;
    }
creates an alert that looks like this:

 
     
     
     
    