Problem Statement
What is a writable computed property and when would you use it?
Explanation
A writable computed has get and set. It lets you map a single field to multiple underlying sources or apply transformations on write. Useful for combined forms or formatting that needs reverse mapping.
Code Solution
SolutionRead Only
const first = ref('Ada'), last = ref('Lovelace')
const full = computed({
get: () => `${first.value} ${last.value}`,
set: v => { const [f,l] = v.split(' '); first.value = f; last.value = l || '' }
})