JavaScript Basics - variables, loops, arrays, functions, events, DOM interactions, alert-confirm-prompt, rollover images - Online Test
30:00
1. Which keyword is used to declare a variable in JavaScript that can be reassigned?
2. What is the primary purpose of a `for` loop in JavaScript?
3. In JavaScript, what is an array?
4. Which keyword is used to define a function in JavaScript?
5. What is an 'event' in the context of JavaScript and web development?
6. What does 'DOM' stand for in web development?
7. Which JavaScript function displays a message box with an OK button?
8. What is the purpose of the `confirm()` function in JavaScript?
9. The `prompt()` function in JavaScript is used to:
10. What is the basic syntax for accessing an element in a JavaScript array by its index?
Test Results
0/0