Java Script Quiz1 1. Which property is used to define the HTML content to an HTML element with a specific id? innerText innerContent innerHTML 2. The const keyword is used to define a ______. Function scopes variable Block scoped variable Constant 3. What is a variable in JavaScript? It is a reserved keyword in JavaScript. It is a container for storing data values. It is a function that returns a value. 4. Which JavaScript method is used to access an HTML element by id? getElementById() getElement() elementById() 5. Which of the keyword is used to define the variable in the javascript? var let Both A & B 6. How do we put Javascript inside HTML? < js > < javascript > < script > 7. Which type of variable cannot be reassigned a new value? let const var 8. Choose the correct JavaScript syntax to change the content of the following HTML code. document.getElement (“msg”).innerHTML = “Hello”; document.getElementById (“msg”).innerHTML = “Hello”; document.getId (“msg”) = “Hello”; 9. Which JavaScript method is used to write on browser’s console? console.write() console.output() console.log() 10. In JavaScript, multi-line comments start with __ and end with ___. /* and */ < !—and — > // and // Loading … Question 1 of 10