Need Assistance?

support@tutorialshub.in

ADVANCED PRACTICE TEST

Advanced JavaScript: Event Loop & Engine Architecture

Test your mastery of the V8 Event Loop, Microtask vs Macrotask Queues, Memory Leak detection, Proxies, and Prototypal Chains.

5 Questions 15 Minutes Instant Scoring All Quizzes
Question 1 of 5
00:00

1. In what order will the console logs execute in this JavaScript snippet?

console.log('1');
setTimeout(() => console.log('2'), 0);
Promise.resolve().then(() => console.log('3'));
console.log('4');

2. Why does WeakMap prevent memory leaks compared to standard Map in JavaScript?

const wm = new WeakMap();
let user = { name: "Alex" };
wm.set(user, "meta_data");
user = null;

3. Which JavaScript Proxy trap intercepts property access such as obj.property?

const p = new Proxy(target, {
______(target, prop, receiver) {
return Reflect.get(...arguments);
}
});

4. What is the true difference between Object.freeze() and Object.seal()?

5. What JavaScript method is called by a Generator function to pause and resume execution?

function* idGen() {
let id = 1;
while(true) {
______ id++;
}
}
0% 0 / 0

Quiz Completed!

Here is your detailed performance breakdown.

Retake Quiz Learn JavaScript

Detailed Question Review