JavaScript Certification Quiz

Test your knowledge to earn your official course certificate!

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