Node.js
0Loading crowd target
0Loading crowd target
7correct to beat the crowd
40 free Node.js trivia questions with answers — science & nature quiz, new questions added Oct 2026.
Node.js took JavaScript out of the browser and put it on the server, and in doing so reshaped how web software is built. It began as one programmer's side project, picked up corporate sponsors, survived a split in its own community, and now sits underneath everything from command-line tools to desktop apps. This quiz mixes that history with practical knowledge. Expect questions on how Node.js copes with many connections at once, how its code is organised and shared through npm, the built-in tools for working with files, servers and binary data, and the wider ecosystem of frameworks and rival runtimes that has grown up around it. It suits beginners checking what they have learned, students preparing for a course or a job interview, and working developers who want to see how much they know beyond their daily routine. Every answer comes with a short explanation, so a wrong guess still teaches something.
30 of 40 questions with answers and explanations. Play the quiz
Q 01Which software engineer created Node.js, then nine years later gave a talk on ten things he regretted about it?
Ryan Dahl
Ryan Dahl stepped back from the project after three years, saying the move freed him up to work on research projects.
Q 02Node.js runs JavaScript on which engine, which Google originally built to power its Chrome browser?
V8
V8 compiles JavaScript to native machine code while the program runs, and that speed is why it was picked as the heart of Node.js.
Q 03Which tiny npm package, just 11 lines long, broke thousands of JavaScript projects when it was suddenly deleted?
left-pad
left-pad was pulled after its author lost a naming dispute with the messaging app Kik over another of his packages. It was restored within hours, and npm then tightened its rules on deletion.
Q 04Which framework combines Node.js with the Chromium browser engine to build desktop apps such as Visual Studio Code?
Electron
Electron began life as Atom Shell, the framework written for the Atom text editor, and it now also underpins apps such as Discord.
Q 05Node.js first ran only on Linux and Mac OS X; which operating system gained a native version two years later?
Windows
Windows got its native build in July 2011, and Microsoft itself helped write the port.
Q 06Which code-hosting company bought npm, Inc. and promised to keep the Node.js package registry free to use?
GitHub
GitHub, itself a Microsoft subsidiary, bought the company in March 2020, six years after npm, Inc. was founded in Oakland, California.
Q 07Node.js was not the first server-side JavaScript: which browser company offered LiveWire for that job in the 1990s?
Netscape
Netscape, the company where JavaScript itself was born, introduced LiveWire Pro Web about 13 years before Node.js arrived.
Q 08In the MEAN stack of web technologies, where N stands for Node.js, which database supplies the letter M?
MongoDB
MongoDB completes a stack in which every layer runs JavaScript, so one language serves both the server and the browser. The acronym was coined in a 2013 blog post.
Q 09Which JavaScript runtime did the creator of Node.js unveil as a fresh start that fixed his earlier design regrets?
Deno
Deno is written in Rust and, unlike its predecessor, blocks file and network access until a script is given permission.
Q 10Which minimalist web framework, inspired by Ruby's Sinatra, became the de facto standard for Node.js servers?
Express
Express is used by companies including PayPal, Uber and IBM, and its fifth major version took ten years of development before arriving in 2024.
Q 11Which green shape, crossed by overlapping bands, features in the official Node.js logo?
A hexagon
A hexagon carries the logo's overlapping bands, which are meant to represent the way the runtime works across different operating systems.
Q 12Node.js gained a built-in ability to run files in which language by replacing its extra syntax with whitespace?
TypeScript
TypeScript files run with no checking of their types at all: the feature, first added in version 22.6, only erases the annotations and leaves the checking to other tools.
Q 13Which package manager did Facebook engineers launch as a faster, more consistent alternative to npm?
Yarn
Yarn was created with help from Google, Exponent and Tilde to fix consistency, security and speed problems that npm showed on big projects.
Q 21Which file at the root of a Node.js project records its name, version, scripts and the packages it depends on?
package.json
package.json has to be strict JSON, not just a JavaScript object literal, and for a published project its name and version together form a unique identifier.
Q 22Into which folder inside a project does a local npm install unpack every downloaded dependency by default?
node_modules
node_modules sits in the project root for a local install; packages installed system-wide on Unix go to a lib/node_modules folder under npm's prefix instead.
Q 23Which core Node.js module, offering methods such as readFile and writeFile, lets programs work with files on disk?
fs
Q 14Node.js's JavaScript engine and many of its native add-ons are written in which compiled language?
C++
C++ is the engine's own language, which is why building a native add-on calls for a compiler such as gcc or clang and the project's header files.
Q 15Node.js was born partly from frustration with which web server's struggle to handle 10,000 simultaneous connections?
Apache
Apache was criticised by Node.js's creator along with sequential programming in general, in which one slow task can block an entire process.
Q 16Which library gives Node.js apps real-time, two-way messaging with browsers, falling back to polling when needed?
Socket.IO
Socket.IO adds heartbeats and timeouts on top of the WebSocket protocol, and compatible servers also exist for Python, Java and Rust.
Q 17Which animal, paired with the word Rocket in its name, became the official Node.js mascot after a design contest?
A turtle
A turtle, the Rocket Turtle, won the contest in February 2024, giving Node.js a mascot some fifteen years after its first release.
Q 18Before creating Node.js, its future author abandoned a PhD in which subject and moved to South America?
Mathematics
Mathematics was his field: he studied algebraic topology, found it beautiful but too remote from real life, and began building websites in Ruby instead.
Q 19Which cloud company, later bought by Samsung, sponsored Node.js and employed its creator in the early years?
Joyent
Joyent also hosted Twitter in its early days, and unhappiness with how it ran Node.js later drove some contributors to launch a rival version.
Q 20Which breakaway version of Node.js, launched over complaints about corporate governance, merged back within a year?
io.js
io.js was set up with its own technical committee and kept pace with newer engine releases, and the reunited project then jumped straight to version 4.0.
fs is modelled on standard POSIX functions, and every operation comes in three forms, including a synchronous one that blocks until it finishes.
Q 24Which mechanism lets Node.js serve many connections on one JavaScript thread by offloading work to the system kernel?
The event loop
The event loop passes operations to the kernel and resumes the waiting JavaScript function when each one finishes; Node.js exits once no work remains.
Q 25Which nickname describes Node.js code in which asynchronous functions are nested so deeply it becomes hard to read?
Callback hell
Callback hell is also known as the pyramid of doom, because the growing indentation looks like a pyramid lying on its side.
Q 26Which pair of JavaScript keywords lets Node.js code pause for a promise yet still read like ordinary synchronous code?
async and await
async and await arrived in the ES2017 edition of JavaScript, giving a flatter alternative to long chains of promise handlers.
Q 27Which development tool watches a Node.js project's files and restarts the server automatically whenever one changes?
nodemon
nodemon is used by simply typing its name in place of node when starting a program, and it works out for itself which file extensions to monitor.
Q 28Which module system, the original way to package code for Node.js, loads dependencies through a function named require?
CommonJS
CommonJS began in 2009 as a project called ServerJS, started by a Mozilla engineer to standardise how JavaScript is organised outside the browser.
Q 29Which property does a Node.js file assign a value to so that other files can load its functions?
module.exports
module.exports can be given a whole new value such as a function or a class, whereas reassigning the shorter exports variable changes nothing that other files see.
Q 30Which command, shipped alongside npm, runs a package's binary and fetches it first if it is not already installed?
npx
npx puts any missing package in a folder in the npm cache instead of adding it to the project, and it asks before installing anything.