Svelte · Middle · Question 18 of 75

What does a function binding do (Svelte 5.9+)?

<input bind:value={
  () => value,
  (v) => value = v.toLowerCase()
} />

Explanation

Before function bindings you'd need a separate oninput handler or an effect to transform values.

Further reading

Problem with a question

Svelte · Middle · question 18

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