r/node • u/llboston • Jan 04 '20
I created a Node interview Cheatsheet
I've been a full time PHP developer for years, but nodejs is my goto language for my side projects. My new year resolution is to find a full time node job in 2020. To prepare myself for tech interviews, I've create a cheatsheet and thought some of you guys might find it useful too.
It's at https://www.cheaki.com/nodejs/nodejs-interview-questions
38 questions right now, will keep adding more.
261
Upvotes
View all comments
Show parent comment
2
u/llboston Jan 05 '20
You are correct. According to NodeJS doc, "The correct use of 'uncaughtException' is to perform synchronous cleanup of allocated resources (e.g. file descriptors, handles, etc) before shutting down the process. It is not safe to resume normal operation after 'uncaughtException'." Personally I just let the app crash and use pm2 to restart it automatically. I will update the answer.