「JavaScript」asyncを使用するサンプル
書式
async function 関数名
使用例
<script>
async function funcA() {
return "ff";
}
funcA()
.then((target) => {
console.log(target);
});
</script>
結果
ff
Coding Changes the World
書式
async function 関数名
使用例
<script>
async function funcA() {
return "ff";
}
funcA()
.then((target) => {
console.log(target);
});
</script>
結果
ff