Debugging JavaScript in Visual Studio.NET Global and Local Variables in JavaScript
Feb 03

Hello everybody, the topic today is going to be Handling Exceptions in JavaScript, which is pretty important because I’ve seen a lot of my coworkers been concerned on how to properly code C# or PHP, but when the time comes to interact with the user in the browser, let’s say to do some simple things like, display a message or show some results, the application just crashes, why?!? Because they didn’t give the same importance to the client side, and you as a developer is responsible to make sure not only IF but WHEN an error happens your code is able to handle it and if the system requires keep running without stopping the whole application. So I’m going to create an example to show the 2(two) ways we can do to accomplish that in JavaScript.

Part 1

Part 2

That’s all you needed to do and know, thank you very much. I hope you have enjoyed.
To download the code, click here -> Handling Exceptions in JavaScript
Author: Luciano Sampaio

3 Responses to “Handling Exceptions in JavaScript”

  1. David Newton Says:

    I found your post very informative, thanks for the update on Javascript. Between you and the other blogs I am reading, I am really becoming smarter…

  2. Luciano Sampaio Says:

    David, Thanks for you comment!! I’ll do my BEST to keep doing good articles!!

  3. Matt Says:

    Nice tutorials, keep up the good work!

Leave a Reply