Question · Svelte and SvelteKit course · Module 5: Bindings

How bind:value Works

What does bind:value do in Svelte?

Answer options

  • It passes the value to the input in one direction only
  • It creates two-way synchronization between the variable and the input
  • It blocks the value from changing
  • It validates the input's value

You can check the correct answer by solving this task in the CodeWorlds game.