[JavaScript]巻き上げのサンプル
書式
const 変数名 =関数名(引数1)
使用例
<script>
const res = funcA(11, 22);
console.log(res);
/*関数の定義*/
function funcA(x, y) {
return x + y;
}
</script>
結果
33
Coding Changes the World
書式
const 変数名 =関数名(引数1)
使用例
<script>
const res = funcA(11, 22);
console.log(res);
/*関数の定義*/
function funcA(x, y) {
return x + y;
}
</script>
結果
33