JavaScript Certification Quiz

Test your knowledge to earn your official course certificate!

1. The external JavaScript file must contain the <script> tag.
2. JavaScript is the same as Java.
3. Which event occurs when the user clicks on an HTML element?
4. How do you round the number 7.25, to the nearest integer?
5. How to write an IF statement for executing some code if 'i' is NOT equal to 5?
6. How does a WHILE loop start?
7. How can you detect the client's browser name?
8. What will the following code return: Boolean(10 > 9)
9. Is JavaScript case-sensitive?
10. How do you create a function in JavaScript?
11. How do you call a function named 'myFunction'?
12. Inside which HTML element do we put the JavaScript?
13. How to insert a comment that has more than one line?
14. Where is the correct place to insert a JavaScript?
15. What is the correct JavaScript syntax for opening a new window called 'w2'?
16. How does a FOR loop start?
17. Which operator is used to assign a value to a variable?
18. What is the correct syntax for referring to an external script called 'xxx.js'?
19. How do you declare a JavaScript variable?
20. How do you find the number with the highest value of x and y?