Computer scienceFrontendVue.jsVue 3 SyntaxVue Instance

Data and Methods

Theory

Order

Report a typo

Put the code into correct order.

Put the items in the correct order
import { ref } from 'vue';
<script>
setup() {
name = ref('Nick');
const age = ref(14);
const underage = ref(false);
return { name, age, underage, checkAge}
}
}
</script>
export default {
const checkAge = () => {
age.value < 18 ? underage.value = true : underage.value = false
}
___

Create a free account to access the full topic