Javascript Quiz

JavaScript Quiz

1 / 20

What does DOM stand for in JavaScript?

2 / 20

What is the purpose of the addEventListener() method in JavaScript?

3 / 20

Which method is used to add a new element to the end of an array?

4 / 20

What is the result of 5 + '5' in JavaScript?

5 / 20

Which function is used to print something in the console in JavaScript?

6 / 20

What keyword is used to declare a variable in JavaScript?

7 / 20

What does the === operator check for in JavaScript?

8 / 20

What method is used to remove the last element from an array in JavaScript?

9 / 20

How can you check the type of a variable in JavaScript?

10 / 20

Which symbol is used for comments in JavaScript?

11 / 20

What does JSON stand for in JavaScript?

12 / 20

How do you declare a function in JavaScript?

13 / 20

What is the purpose of the querySelector() method in JavaScript?

14 / 20

Which method is used to remove the first element from an array in JavaScript?

15 / 20

What is the result of typeof NaN in JavaScript? a) "number" b) "NaN" c) "undefined" d) "object"

16 / 20

What does the setTimeout() function do in JavaScript?

17 / 20

What does AJAX stand for in JavaScript?

18 / 20

Which built-in method is used to sort the elements of an array in JavaScript? a)  b)  c) d)

19 / 20

What keyword is used to declare a block scope variable in JavaScript?

20 / 20

What is the purpose of the forEach() method in JavaScript arrays?

Your score is

The average score is 67%

0%

Scroll to Top