My Javascript has the following:
(A + B) ? C
I have everything else, but how do I have C to be a force? I thought using ^ would work, but it just adds it.
JavaScript does not have an exponentiation operator. ^actually a bitwise XOR operator .
^
Try instead Math.pow:
Math.pow
var d = Math.pow(a + b, c);