Discussion on: 7 Hardest Node.js Interview Questions & Answers

lietux profile image
Janne "Lietu" Enberg

in your Q7 the "solution" does not perform the same actions as the first one, you're ignoring the arguments, and using console.log instead of res.send .. I'd fail you for that answer

also LTS is not a Node.js term, it's a generic term .. you will find it in use in linux distros and many other places

oh and I massively disagree on these difficulty ratings

pawda profile image

Indeed Q7 answer's is totally wrong and don't do the same as the first version.
if "someOtherFunction" throw it will print and continue with execution of "somethingElseFunction".

The second answer is even more wrong as it includes a try/catch