Google News
logo
Vue.JS - Quiz(MCQ)
Which of the following syntax is correct for creating a Vue.js instance?
A)
var text = new Vue({// options })
B)
var text = new text ({//options})
C)
var text = new class ({//options})
D)
var text = new object ({//options})

Correct Answer :   var text = new Vue({// options })


Explanation : The correct syntax for creating instance is var text = new Vue({// options }).

Advertisement