Question 6
Consider the following Vue application with markup index.html and JavaScript 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"></script></body>app.js
new Vue({ el: '#app', template: `<div> <div id="holiday">{{isHoliday?"Holiday":"Not Holiday"}}</div> <button @click="increeseCount">Increese Count</button> </div>`, data: { count: 1, isHoliday: false, }, watch: { count() { if (this.count % 5 == 0) { this.isHoliday = true } }, }, methods: { increeseCount() { this.count += 6 }, },})Suppose the application is running on “http://localhost:8080” if the user clicks on button “Increese Count” 5 times. What will be rendered inside the div with id “holiday”?
Holiday
Not Holiday
true
false