📜  如何在javascript代码示例中对值进行平方

📅  最后修改于: 2022-03-11 15:01:16.191000             🧑  作者: Mango

代码示例1
// Use Math.pow(a,b); where a is your value and b is the exponent
var num = Math.pow(4, 2);
//num returns 16