ES7 (2) – Pow

Time:2021-1-15

catalog

  • Math: POW power operation
  • How to abbreviate the power in ES7?
  • Es6-es10 learning map

Math: POW power operation

ES5 pow

console.log(Math.pow(2,4)) // 16

How to abbreviate the power in ES7?

ES7 **

console.log(2 ** 4) // 16

Es6-es10 learning map

ES7 (2) - Pow