Java Script Quiz1

1. Which property is used to define the HTML content to an HTML element with a specific id?

 
 
 

2. The const keyword is used to define a ______.

 
 
 

3. What is a variable in JavaScript?

 
 
 

4. Which JavaScript method is used to access an HTML element by id?

 
 
 

5. Which of the keyword is used to define the variable in the javascript?

 
 
 

6. How do we put Javascript inside HTML?

 
 
 

7. Which type of variable cannot be reassigned a new value?

 
 
 

8. Choose the correct JavaScript syntax to change the content of the following HTML code.

 
 
 

9. Which JavaScript method is used to write on browser’s console?

 
 
 

10. In JavaScript, multi-line comments start with __ and end with ___.

 
 
 

Question 1 of 10

Scroll to Top