DEV Community

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

Collapse
 
pawda profile image
Memoria

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