We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
await ブロック
Svelte の特徴でもある await ブロックの書き方で、以下の内で間違っているものを一つ選んでください。
A
{#await promise} <p>...wait</p> {:then number} <p>The number is {number}</p> {:catch error} <p>{error.message}</p> {/await}
B
{#await promise} <p>...wait</p> {:catch} <p>error happened</p> {/await}
C
{#await promise then number} <p>The number is {number}</p> {/await}
D
{#await promise catch} <p>error happened</p> {/await}
正解は D です!
この場合は下記のように引数を指定しなければなりません。
{#await promise catch error} <p>error happened</p> {/await}
await ブロックについてはこちら https://sveltejp.dev/docs#await
The text was updated successfully, but these errors were encountered:
await テンプレート構文
ドキュメントで使われている用語に揃えて、awaitブロックにしませんか?
Sorry, something went wrong.
これ正式名称が良く分かってなかったんですけど、特にこだわりはないので「ブロック」に合わせます
LGTM
No branches or pull requests
テーマ
await ブロック
問題文
Svelte の特徴でもある await ブロックの書き方で、以下の内で間違っているものを一つ選んでください。
A
B
C
D
回答と解説
正解は D です!
この場合は下記のように引数を指定しなければなりません。
await ブロックについてはこちら
https://sveltejp.dev/docs#await
The text was updated successfully, but these errors were encountered: