Svelte · Junior · Question 38 of 76

What does tick() return?

Explanation

await tick() is useful when you need to read the updated DOM right after changing state, for example to move focus.

Further reading

Problem with a question

Svelte · Junior · question 38

Test yourself

Take the Svelte · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz