Question 26
Consider the below application with markup “index.html” and javascript file “app.js”.
index.html:
<body> <div id="app"></div> <scriptsrc="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script> <script src="app.js" type="module"></script></body>app.js:
new Vue({ el: '#app', template: `<div> <ol type='1'> <li v-for='fruit in fruits'>{{fruit}}</li> </ol></div>`, data: { fruits: ['Banana', 'Mango'], }, beforeCreate() { this.fruits.push('Orange') }, created() { this.fruits.push('Apple') },})Suppose you open the file “index.html” in a browser. What will be rendered by the browser?