Computer scienceFrontendVue.jsVue 3 SyntaxVue Instance

Data and Methods

Complete method

Report a typo

Here's a Vue instance that defines the name and country variables. We want to render a string "Hi everyone! I'm name and I live in country". The properties should be dynamic. Finish the code that must be inside the h1 tag:

<script setup>
import { ref } from 'vue';

const name = ref('quokka');
const country = ref('Australia');

</script>

<template>
  <h1>YOUR CODE HERE</h1>
</template>
Enter a short text

Create a free account to access the full topic