tylermwashburn tylermwashburn - 6 months ago 90
Javascript Question

JavaScript exponents

How do you do exponents in JavaScript?

Like how would you do 12^2?

Answer

Math.pow():

js> Math.pow(12, 2)
144