JavaScript MCQ Test: JavaScript MCQs - Practice Questions
1. How do you check if an element has a specific class in JavaScript?
2. Which method is used to remove the last element from an array in JavaScript?
3. What is the result of the expression '2' + 2 in JavaScript?
4. How do you declare a function in JavaScript?
5. What is the purpose of 'setTimeout()' in JavaScript?
6. What is the purpose of the 'reduce' method in JavaScript?
7. How do you round the number 7.25 to the nearest integer in JavaScript?
8. What is the purpose of the 'fetch' function in JavaScript?
9. What is the result of the expression '2 + 2' in JavaScript?
10. What is the purpose of the 'async' keyword in JavaScript?