function currentLine(katzDeliLine) {
if (katzDeliLine.length > 0) {
var textToPrint = \"The line is currently: \"
for (var crrLine = 0; crrLine &
function currentLine(katzDeliLine) {
if (katzDeliLine.length > 0) {
var textToPrint = "The line is currently: "
for (var crrLine = 0; crrLine < katzDeliLine.length; crrLine++) {
textToPrint = textToPrint + (crrLine + 1)+". "
+katzDeliLine[crrLine]+","
}
return textToPrint.replace(/,\s*$/, "");
} else {
return "The line is empty"
}
}
var lineofpeople = ["katrina", "kevin", "vincent"]
console.log(currentLine(lineofpeople));