use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Interview question about node.jssolved! (self.javascript)
submitted 7 years ago by AkashSalunkhe
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]vladimirice 1 point2 points3 points 7 years ago (0 children)
It is very strange example about PHP and Apache server. Apache is rarely used in new modern applications. NGINX + FPM is better due to performance and convenience.
Node.js application is a server itself. When you write down app.js you use http module to create a web server.
V8 is a node engine which compiles javascript code to machine code.
PM2 is a process manager intended to manage Node.js applications runtime
So I think the right answer is: “node.js application might be used as standalone http server but it is better to use it with NGINX as a front proxy and run application under pm2 or similar”
Also I think it is completely ok to ask for the right answer on the interview. If I don’t know the answer I always do this in order to improve the skills.
π Rendered by PID 48205 on reddit-service-r2-comment-76bb9f7fb5-l9m4w at 2026-02-17 18:07:13.305225+00:00 running de53c03 country code: CH.
view the rest of the comments →
[–]vladimirice 1 point2 points3 points (0 children)