How to have a number to be a force?

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.

+3
source share
1 answer

JavaScript does not have an exponentiation operator. ^actually a bitwise XOR operator .

Try instead Math.pow:

var d = Math.pow(a + b, c);
+12
source

All Articles