Question 12
Consider the following Vue2 app and the index file given below.
index.html
<body> <div id="app"> <h4>{{ state }}</h4> </div> <script src="https://cdn.jsdelivr.net/npm/vue@2.7.16/dist/vue.js"> </script> <script src="./script.js"></script></body></html>script.js
const app = new Vue({ el: '#app', data: { terminal: ['3','2','1'], curr_status: ["arrived", "departed", "delayed"] }, computed: { state: () => { return `The flight 103 has ${this.curr_status[1]} from terminal${this.terminal[2]}.` } }})What will be the output on the browser?
The flight 103 has departed from terminal 1.
The flight 103 has arrived from terminal 2.
The flight 103 has delayed from terminal 3.
The flight 103 has from terminal.
ReferenceError