tylermwashburn tylermwashburn - 1 year ago 246
Javascript Question

JavaScript exponents

How do you do exponents in JavaScript?

Like how would you do 12^2?

Answer Source

Math.pow():

js> Math.pow(12, 2)
144