Qtr No. 213, New Town Yehlanka
Indore 454775, India
William created a simple Vue instance, as shown below:
<div id="app">
<h3>User Details</h3>
{{getData("Mary")}}
</div>
<script>
const { createApp } = Vue
var bioData = [{ name: "Mary", placeOfBirth: "New York", age: 34 }];
const app = createApp({
data() {
return { bioData }
},
methods: {
getData: function (name, age) {
return this.name == this.bioData[0].name
}
}
}).mount('#app')
</script>Predict the output of the code.
User Details
false
User Details
Mary
User Details
true
To get all Infosys Certified VueJS Professional Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee