"price" is an array of 6 prices. I want to find the sum and average and the highest and lowest price in that array. Currently my answer2 only displays the numbers on a straight line.
let answer2 = ""
for (let k=0; k < price.length; k++) {
answer2 += price[k];
}```