×
×
Correct!
Fill in the missing code so that the user either sees the text 'in stock' or 'not in stock'.
<div id="app">
<p @(4)="typewritersInStock">
in stock
</p>
<p @(6)>
not in stock
</p>
</div>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script>
const app = Vue.createApp({
data() {
return {
typewritersInStock: true
}
}
})
app.mount('#app')
</script>
<div id="app">
<p v-if="typewritersInStock">
in stock
</p>
<p v-else>
not in stock
</p>
</div>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script>
const app = Vue.createApp({
data() {
return {
typewritersInStock: true
}
}
})
app.mount('#app')
</script>
Not CorrectClick here to try again. Correct! |
This will reset the score of ALL 54 exercises.
Are you sure you want to continue?