Question from the Vue.js test

What is the value of the following expression in VueJS? `this.$route.params.id`

Medium

How many divs does the following template generate?

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

const persons = ref([
  { name: "John", familyName: "Smith", age: 42 },
  { name: "Paul", familyName: "Williams", age: 35 },
  { name: "Judith", familyName: "Jones", age: 50 },
  { name: "Kate", familyName: "Brown", age: 22 },
])
</script>

<template>
  <div v-for="person of persons" v-if="person.age > 40">
    {{person.name}}
  </div>
</template>
Author: AdrienStatus: PublishedQuestion passed 354 times
Edit
0
Community Evaluations
developer avatar
Incorrect answer
Auteur anonyme
10/11/2024
Exact à cause de "person". J'ai cliqué trop vite j'ai voulu mettre un + Vous pouvez retirer.
developer avatar
Auteur anonyme
13/11/2024
Salut j'ai pas compris !