Click in order · Vue.js course · Module 15: TypeScript & Nuxt
Typing Writable computed
Arrange the elements of a writable computed with types:
Items to click
- computed<number>({
- })
- set: (val: number) => { celsius.value = (val - 32) * 5/9 }
- get: () => celsius.value * 9/5 + 32,
You can check the correct answer by solving this task in the CodeWorlds game.