Qtr No. 213, New Town Yehlanka Indore 454775
Consider the below code snippet and predict the output of it. Assume that all the required setup is done.
<div id="app">
<h3>Vue Instance</h3>
<p>{{content}}</p>
<p>{{status}}</p>
</div>
<script>
const { createApp } = Vue
var courseList = [{ courseName: "Vue.js", trainingDays: 5 }, { courseName: "CSS", trainingDays: 2 }]
const app = createApp({
data() {
return { content: courseList }
},
methods: {
getBioData: () => {
return "User Name: " + this.userName + " User Age: " + this.age;
},
}
}).mount('#app')
courseList.push({ courseName: "Sass", trainingDays: 1 })
app.status = "Course in progress"
</script>
[ { "courseName": "Vue.js", "trainingDays": 5 }, { "courseName": "CSS", "trainingDays": 2 }, { "courseName": "Sass", "trainingDays": 1 } ]
Course in progress
[ { "courseName": "Vue.js", "trainingDays": 5 }, { "courseName": "CSS", "trainingDays": 2}]
[ { "courseName": "Vue.js", "trainingDays": 5 }, { "courseName": "CSS", "trainingDays": 2 }, { "courseName": "Sass", "trainingDays": 1 } ]
To get all Infosys Certified VueJS Professional Exam questions Join Telegram Group https://bit.ly/infy_premium_group
We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.
Qtr No. 213, New Town Yehlanka Indore 454775
admin@prepflix.in
Updated on Sun, 6 Jul 2025