How do I express this in javascript?
9H squared plus 3H all over 2 times L
I'm working on something like:
function calculator (height, len) {
var H = height, L = len;
total = (((9 * H)*(9 * H)) + 3*H)/2)*L;
return total;
}
calculator(15, 7);
I don't care if it's terse or not, but I'm not sure the best way to handle math in javascript.
thank you.