【ES7系列】指数计算

//ES7之前:2的3次方(基数,指数)
console.log(Math.pow(2, 3)) // 8

//ES7:2的5次方
console.log(2 ** 5) //

 

你可能感兴趣的:(ES7,Javascript,基本功)