「javaScript」関数のデフォルト引数を使うサンプル
書式
function 関数名(変数1,変数2)
使用例
<script>
  function funcA(x = 7, y = 8, z = 9) {
    return x + y + z;
  }
  num = funcA();
  console.log(num); 
</script>
結果
24
Coding Changes the World
書式
function 関数名(変数1,変数2)
使用例
<script>
  function funcA(x = 7, y = 8, z = 9) {
    return x + y + z;
  }
  num = funcA();
  console.log(num); 
</script>
結果
24