im trying to make a temperature convertor. I'm not sure how to print an array to a textarea. the text area is showing empty.
function getAvg() {
var fahrenheit = document.getElementById("fahrenheit").value;
var celsius = document.getElementById("celsius").value;
var output = [fahrenheit, celsius];
for (var i = 0; i < output.length; i++) {
console.log(output[i])
document.getElementById('chart').value = output;
return output;
}
}