Node.js
/Beginner
Beginner Questions
Definition
Common theoretical questions asked in introductory Node.js interviews to verify fundamental understanding.
Explain Like I'm New
Interviewers use these questions to check if you actually know what Node.js is, or if you just memorized how to build an Express app without understanding the underlying mechanics.
Real World Example
Testing knowledge of the V8 engine, non-blocking I/O, and single-threaded execution.
Common Use Cases
- •Entry-level backend developer interviews
- •Full-stack developer assessments
Terminal Output
bash / terminal
// Q: What is the difference between Node.js and JavaScript in the browser?
console.log("BROWSER JS:");
console.log("- Has access to the DOM (document.getElementById).");
console.log("- Has the window object.");
console.log("- Cannot read/write files to the user's hard drive for security.");
console.log("\nNODE.JS:");
console.log("- Has ZERO access to the DOM (document is undefined).");
console.log("- Has the global object (instead of window).");
console.log("- Can read/write files, create network servers, and access the OS kernel.");
Interview Questions
basic
- What exactly is Node.js?
intermediate
- Explain 'Non-blocking I/O' as if I were 5 years old.