Tag: try-catch

  • [Javascript] Controlling code flow (3)

    [Javascript] Controlling code flow (3)

    try, catch, and finally When we try to handle errors, try-catch statement is a good option. However, it isn’t clear how the error is caught in catch block. Furthermore, it is trickier when finally block is included. We do know that finally block must be executed after try and catch block, but the code flow…