javascript Math.pow

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript Math.pow相关的知识,希望对你有一定的参考价值。

console.log(2 ** 2) // Renvoie le carree de 2
//Math.pow => Renvoie le carré d'un nombres
console.log("Math.pow ");
const carre = Math.pow(2,2); //Carré de 2
console.log(carre);

以上是关于javascript Math.pow的主要内容,如果未能解决你的问题,请参考以下文章