Question 12
Consider the following Vue application with markup index.html and JavaScript file app.js.
File: index.html
<div id="app"></div><script src="script.js"></script>File: script.js
new Vue({ el: '#app', template: `<div> Process: {{process}}<br> Count: {{count}} </div>`, data: { process: "Start", count: 5, }, beforeCreate() { this.process = this.process + " -> Init" this.count = this.count + 2 }, created() { this.process = this.process + " -> Ready" this.count = this.count * 2 }, beforeMount() { this.process = this.process + " -> Render" this.count = this.count - 3 },
mounted() { this.process = this.process + " -> Complete" this.count = this.count / 2 },})Suppose the application is running on http://127.0.0.1:8080. What will be rendered by the browser?