JavaScript Quiz

 

Results

#1. What is the correct JavaScript syntax to change the content of the HTML element below?

This is a demonstration.

#2. Where is the correct place to insert a JavaScript?

#3. What is the correct syntax for referring to an external script called “xxx.js”?

#4. The external JavaScript file must contain the < script > tag.

#5. How do you write “Hello World” in an alert box?

#6. How do you create a function in JavaScript?

#7. How does a WHILE loop start?

#8. How does a FOR loop start?

#9. How to insert a comment that has more than one line?

#10. JavaScript is the same as Java.

#11. What will the following code return: Boolean(10 > 9)

#12. Is JavaScript case-sensitive?

Previous
Finish