Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
Easy
4 questionsHow would you use Object.groupBy() to group an array of orders by status, and how does it compare to a manual reduce()?
Frontend ยท 1.2k views ยท es2024, tricky, real-world
What is the difference between var, let, and const?
Frontend ยท 1.2k views ยท var, let, const
What is the difference between preventDefault and stopPropagation?
Frontend ยท 669 views ยท events
What is event bubbling and capturing?
Frontend ยท 461 views ยท events
Medium
12 questionsImplement a robust Event Emitter class.
DSA ยท 1.1k views ยท design-patterns, pubsub, event-emitter
How do you implement a deepFreeze function recursively?
Frontend ยท 939 views ยท objects, recursion, immutability
Explain event delegation.
Frontend ยท 902 views ยท events, dom, performance
What is event delegation?
Frontend ยท 817 views ยท event-delegation
Why is navigator.sendBeacon() the right tool for sending analytics data when a user closes a tab, instead of a normal fetch call?
Frontend ยท 579 views ยท utility, tricky, real-world
What does setTimeout with 0 delay actually do?
Frontend ยท 569 views ยท settimeout
What is the difference between Object.freeze and const?
Frontend ยท 516 views ยท immutability
Why must you pass the same function reference to removeEventListener?
Frontend ยท 431 views ยท events
Hard
3 questionsExplain the event loop, call stack, and task queues.
Frontend ยท 1.2k views ยท event-loop
What is the difference between microtasks and macrotasks?
Frontend ยท 420 views ยท event-loop, microtask
What is debouncing and throttling?
Frontend ยท 115 views ยท performance, optimization, debouncing
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question