Question · Svelte and SvelteKit course · Module 10: Actions
What an Action Returns
What can an action function return?
Answer options
- Nothing (an $effect does the cleanup), or an object with destroy and/or update methods
- Promise
- A DOM element
- A string with the action's name
You can check the correct answer by solving this task in the CodeWorlds game.