JavaScript Quiz – Test Your Coding Knowledge

0 votes, 0 avg

The test begins as soon as you click the Start button. You may continue working until the time limit expires. When the time is up, your test will be submitted automatically, whether you have finished or not. Please manage your time carefully and review your answers before the deadline.

When your time is up, your test will be submitted automatically, whether you have finished answering or not. Please manage your time wisely.


JavaScript

JavaScript Quiz – 20 Questions to Test Your Skills

JavaScript Quiz – 20 Questions to Test Your Skills

Test your JavaScript knowledge with this 20-question quiz. Perfect for beginners and experienced developers to practice, learn, and sharpen their JS skills.

1 / 20

What is logged?

const target = { a: 1 };
const handler = {
  get: function(obj, prop) {
    return prop in obj ? obj[prop] : 42;
  }
};
const p = new Proxy(target, handler);
console.log(p.a, p.b);

 

2 / 20

How does prototypal inheritance work in JavaScript?

3 / 20

What is the primary role of the Event Loop in JavaScript's runtime environment?

4 / 20

In JavaScript, what is the primary purpose of "truthy" and "falsy" value evaluation?

5 / 20

What does this code most likely output?

const formatter = new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' });
console.log(formatter.format(123456.789));

6 / 20

Why would you use a WeakMap over a Map?

7 / 20

What is the result?

const arrLike = { length: 3 };
const result = Array.from(arrLike, (v, i) => i * 2);
console.log(result);

8 / 20

let and the Temporal Dead Zone (TDZ)

console.log(example);
let example = "value";

9 / 20

What does this code output?


const result = ['1', '2', '3'].map(parseInt);
console.log(result);

10 / 20

In what order is the output logged?

11 / 20

What is the output?


function* generator() {
yield 1;
yield* [2, 3];
yield 4;
}
console.log([...generator()].join('-'));

12 / 20

What is the purpose of the use strict directive?

13 / 20

What does console.log(2 + "2" - 1) output?

14 / 20

Which symbol is used for strict equality comparison?

15 / 20

 What is the output of console.log([] == ![])?

16 / 20

Which method creates a new array with all elements that pass a test?

17 / 20

What will console.log(0.1 + 0.2 === 0.3) output?

18 / 20

What does "5" + 3 return in JavaScript?

19 / 20

Which method adds one or more elements to the end of an array?

20 / 20

What will console.log(typeof null) output?

Your score is

The average score is 15%

0%

Scroll to Top