Jump to content

  • Free consultations and support
  • Live chatClick Here for Live Chat
  • Call ico 1888-906-1888
    Phone support: Open

    Ready for your call :)

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

    Phone support: Closed

    We are back in: 1h 20m

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams


JavaScript try and catch

javascript try and catch

  • Please log in to reply
 

#1 SmartWeb

SmartWeb

    Senior Member

  • Designer
  • 271 posts

Posted 12 March 2013 - 10:11 PM

JavaScript try statement lets you define code blocks to for testing errors during execution.
JavaScript catch statement lets you define code blocks that would be executed, in case an error occurs during execution of the try block.
try and catch come in pairs in JavaScript.
try
{
//Run your code in here
}
catch(err)
{
//Handle the errors here
}





Also tagged with one or more of these keywords: javascript, try and catch

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users