I have a small piece of code that generates an array with values based on a triangle. I will post the array below.
var endwallPanelLengths = [totalHeightInches];
var i = 0;
while (endwallPanelLengths[i] > eaveInches)
{
endwallPanelLengths.push(endwallPanelLengths[i] - peakHeightDecrease);
document.getElementById("test83").value="4 - " + endwallPanelLengths[i];
i++;
}
This array will have anywhere between 2 to 100 indexes. I want the code to write all of the values separated by breaks into a <textarea>
with the id="test83".
If I run the code as it is set up above it will only write the value in array [1] not [0] or any of the others. How can I get it to write all of them so that they come out looking like this...
4 - 140 this is the value of array position [0]
4 - 126
4 - 116 and so on?