Modern Application Development II, Quiz 1
Which of the following statements is correct regarding javascript language?
Which of the following statements is correct regarding javascript language? Consider the following Vue application with markup “index.html” and javascript file “app.js”. index.html: <div id = "app"> <h3> Header Content </h3> <main></main> <h3> Footer Content </h3> </div> <script src="app.js"></script> app.js: const main = { template : ` <div> <h3> Main Content </h3> </div> ` } const comp = { 'main' : main } new Vue({ el : "#app" }) If the file “index.html” is opened with the help of a browser. What will be rendered on the browser? Consider the below javascript program, and predict the output, if executed. var num = 20; function demo () { num = 50; function num () { console.log("Number is:", num) } } demo() console.log("Number is:", num)