Qtr No. 213, New Town Yehlanka
Indore 454775, India
Consider the below code snippet and predict the output of it. Assume that all the required setup is done.
<div id="app">
<h3>User Details</h3>
{{getBioData()}}
</div>
<script>
const { createApp } = Vue
var bioData = { userName: "Sam", placeOfBirth: "New York", age: 34 };
const app = createApp({
data() {
return { bioData }
},
methods: {
getBioData: () => {
return "User Name: " + this.userName + " User Age: " + this.age;
},
}
}).mount('#app')
</script>
User Details
User Name: Marry User Age: 34
User Details
User Name : User Age :
User Details
User name : undefined User age : undefined
To get all Infosys Certified VueJS Professional Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee