Sector file // nodejs
NODE.JSDECODED.
Event loop, streams & APIs
Easy
7 questionsHow do you handle CORS (Cross-Origin Resource Sharing) in Node.js?
Frontend ยท 992 views ยท cors, security, express.js
What are the main security risks of using the 'eval()' function in Node.js?
Phone Screen ยท 811 views ยท security, best-practices, eval
What is Node.js and why is it popular?
Phone Screen ยท 594 views ยท basics, runtime, javascript
What is structuredClone and when is it useful in Node.js?
Backend ยท 549 views ยท nodejs, cloning, structuredclone
What is the difference between blocking and non-blocking I/O in Node.js?
DSA ยท 432 views ยท i/o, blocking, non-blocking
What is the role of the V8 JavaScript engine in Node.js?
Phone Screen ยท 331 views ยท v8, javascript, runtime
Explain the concept of REPL in Node.js
Phone Screen ยท 314 views ยท fundamentals, repl, cli
Medium
8 questionsHow does the Node.js event loop work?
DSA ยท Amazon ยท 2.9k views ยท node, event-loop, async
When would you choose Node.js over other backend technologies?
System Design ยท 1.1k views ยท use cases, scalability, real-time
What are Worker Threads in Node.js and when would you use them?
System Design ยท 1.1k views ยท worker threads, concurrency, performance
How does Node.js handle multi-threading behind the scenes if JavaScript is single-threaded?
System Design ยท 958 views ยท libuv, multi-threading, event-loop
How does `async/await` work and what are its benefits?
DSA ยท 858 views ยท async/await, promises, asynchronous
How do you containerize a Node.js app with a small, secure Docker image (multi-stage, distroless)?
System Design ยท 694 views ยท nodejs, docker, deployment
How does the thread pool work in Node.js?
Low-Level Design ยท 515 views ยท libuv, multithreading, event-loop
Describe the Node.js module system. What are CommonJS and ES Modules?
Phone Screen ยท 252 views ยท modules, commonjs, es modules
Hard
12 questionsHow do you profile CPU usage with --prof, 0x, or clinic.js flame graphs?
Backend ยท 1.1k views ยท nodejs, performance, profiling
What is a ReDoS (Regular Expression Denial of Service) attack and how do you avoid it?
Backend ยท 1.0k views ยท nodejs, security, redos
When would you use `child_process` module in Node.js?
System Design ยท 1.0k views ยท child_process, system calls, concurrency
What are memory leaks in Node.js and how do you detect them?
Low-Level Design ยท 950 views ยท memory, debugging, v8
How does the Node.js 'dns' module differ from browser-based DNS resolution?
Low-Level Design ยท 875 views ยท dns, networking, modules
How do you achieve concurrency in Node.js since it's single-threaded?
System Design ยท 660 views ยท concurrency, single-threaded, event loop
Explain the concept of 'Event Loop Pollution' and how to avoid it.
Low-Level Design ยท 523 views ยท event-loop, performance, asynchronous
Describe the Node.js architecture.
System Design ยท 449 views ยท architecture, v8, libuv
Seen a Node.js question that is not here? Add it and help the next candidate.
Share a question