うさのJavaScript講座 サンプル集 数学編
Top
>
サンプル集 数学編
> 累乗 Math.pow (math5)
クリップボードにコピー
サンプルを表示
// x, y : 値 function execute(x, y){ //
に結果を表示します document.getElementById("result").textContent = Math.pow(x, y); }