JavaScript Intermediate
This test assesses your intermediate-level understanding of JavaScript, including DOM manipulation, event handling, object-oriented programming, and scope. To enhance your skills, explore the MDN JavaScript Docs, go through the structured course at JavaScript.info, or practice live projects via Frontend Mentor.
1
What is a closure in JavaScript?
2
Which keyword is used to define a constant in JavaScript?
3
How do you add a property to an object?
4
What does the 'this' keyword refer to in a regular function?
5
Which method can be used to select an element by ID?
6
What does JSON stand for?
7
Which method adds an element to the end of an array?
8
Which array method is used to remove the last element?
9
What is the output of typeof null?
10
How do you prevent default behavior in an event handler?
11
Which method is used to convert a JSON string into a JavaScript object?
12
Which scope is not accessible outside a block?
13
What does the '===' operator do?
14
Which function is used to delay execution in JavaScript?
15
Which operator spreads iterable elements?