Question · Vue.js course · Module 11: Pinia
Defining State
How is state defined in a Pinia store (Options API)?
Answer options
- As a function returning an object
- As a static property
- As a class field
- As a global variable
You can check the correct answer by solving this task in the CodeWorlds game.