Tweet
In this short post I'm going to share some really useful JavaScript syntax checker.
When programming we surely need to check what it's been done. It's better to verify the code when still in production, during the so-called test period. When published, a web site could still contain errors, but what we surely need to avoid is those annoying syntax errors.
There are specific programs freely available that we can use to do so. Here we are going to see 3 tools that we should carefully consider.
Showing posts with label syntax error. Show all posts
Showing posts with label syntax error. Show all posts
Thursday, 27 December 2012
Monday, 11 April 2011
JavaScript: catch the error!
Tweet
Who knows about try... catch statement? Who use it?
I know that code have to be clean, working and thoroughly tested, however everybody should know about the possibility of managing syntax errors in JavaScript.
How terrible is when the JavaScript alert box popups with a runtime error (a nightmare for every programmer!) in front of our web visitor asking for "Do you wish to debug?"? Debug what?! Have I got a virus? Run, run, run away! And the visitor actually runs away (often scared) from your wonderful web site to never return, in fear of misterious threats.
So, why not use the try... catch statement?
Who knows about try... catch statement? Who use it?
I know that code have to be clean, working and thoroughly tested, however everybody should know about the possibility of managing syntax errors in JavaScript.
How terrible is when the JavaScript alert box popups with a runtime error (a nightmare for every programmer!) in front of our web visitor asking for "Do you wish to debug?"? Debug what?! Have I got a virus? Run, run, run away! And the visitor actually runs away (often scared) from your wonderful web site to never return, in fear of misterious threats.
So, why not use the try... catch statement?
Subscribe to:
Posts (Atom)