Sector file // nodejs
NODE.JSDECODED.
Event loop, streams & APIs
Easy
11 questionsExplain the difference between require() and import in Node.js.
Phone Screen ยท 1.0k views ยท modules, commonjs, esm
Explain how modules work in Node.js.
Phone Screen ยท 826 views ยท modules, commonjs, es modules
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 the purpose of the assert module in Node.js?
Phone Screen ยท 510 views ยท testing, modules, assert
How do you replicate __dirname in ES Modules using import.meta.url?
Backend ยท 473 views ยท nodejs, esm, import-meta
What is the use of the 'os' module in Node.js?
Phone Screen ยท 418 views ยท os, modules, performance
Explain the concept of REPL in Node.js
Phone Screen ยท 314 views ยท fundamentals, repl, cli
Medium
10 questionsHow do you mock modules, timers, and network calls in Node.js tests?
Backend ยท 1.2k views ยท nodejs, testing, mocking
What are npm workspaces and how do you manage a monorepo with them?
Backend ยท 1.1k views ยท nodejs, npm, monorepo
What is the difference between "type": "module", .mjs, and .cjs?
Backend ยท 931 views ยท nodejs, esm, commonjs
What is top-level await and what are its caveats in Node.js ESM?
Backend ยท 925 views ยท nodejs, esm, async
What are the differences between npm, Yarn, and pnpm?
Backend ยท 860 views ยท nodejs, npm, pnpm
How do you containerize a Node.js app with a small, secure Docker image (multi-stage, distroless)?
System Design ยท 694 views ยท nodejs, docker, deployment
What is undici and why is the global fetch built on it in modern Node.js?
Backend ยท 376 views ยท nodejs, http, undici
What is `node:sqlite`, Node's built-in SQLite module?
Backend ยท 368 views ยท node:sqlite, database, sqlite
Hard
5 questionsHow do you handle circular dependencies in Node.js?
Low-Level Design ยท 1.1k views ยท modules, commonjs, architecture
How does CommonJS `require()` an ES Module in modern Node.js?
Backend ยท 1.1k views ยท commonjs, esm, require
What is diagnostics_channel and when would you use it?
Backend ยท 1.0k views ยท nodejs, observability, diagnostics
How does the Node.js 'dns' module differ from browser-based DNS resolution?
Low-Level Design ยท 875 views ยท dns, networking, modules
What are Single Executable Applications (SEA) in Node.js?
Backend ยท 637 views ยท nodejs, distribution, sea
Seen a Node.js question that is not here? Add it and help the next candidate.
Share a question