I've already spent a lot of time on this without any success.
I'm trying a retrieve the value of a variable, calculated earlier in the js, so I can plug it into a second calculation. Here's my code for the second calculation....
var a = Math.pow(8000000000000/c, 1/3);
document.write("The answer is: " + a );
My variable of concern is "c". It already has a value from an earlier calculation in the same js. If I enter a value manually into the second line, "c=100" for example, it will correctly calculate and display the new value of "a". How do I get js to read the previously calculated value of "c"?
This is the only thing holding me up from completing my new website!