Svelte · Middle · Question 26 of 75

What does derived from svelte/store do?

const total = derived([price, qty], ([$price, $qty]) => $price * $qty);

Explanation

The callback can also take set to produce values asynchronously.

Further reading

Problem with a question

Svelte · Middle · question 26

Test yourself

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

Take this quiz