<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Talha Iqbal</title>
    <description>The latest articles on DEV Community by Talha Iqbal (@talhaiqbal).</description>
    <link>https://dev.to/talhaiqbal</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1201099%2F65a35426-069d-4b87-af4f-7d74a49d6582.jpeg</url>
      <title>DEV Community: Talha Iqbal</title>
      <link>https://dev.to/talhaiqbal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/talhaiqbal"/>
    <language>en</language>
    <item>
      <title>Error Handling in JavaScript</title>
      <dc:creator>Talha Iqbal</dc:creator>
      <pubDate>Fri, 03 Nov 2023 13:54:22 +0000</pubDate>
      <link>https://dev.to/talhaiqbal/error-handling-in-javascript-291o</link>
      <guid>https://dev.to/talhaiqbal/error-handling-in-javascript-291o</guid>
      <description>&lt;p&gt;Are tired of Errors?&lt;br&gt;
Lets learn error handling in JavaScript in 60 seconds.&lt;/p&gt;

&lt;p&gt;There are multiple types of error:&lt;br&gt;
Syntax error, reference error Type Error, Range Error&lt;/p&gt;

&lt;p&gt;we can deal with this by wrapping the block of code in try block&lt;br&gt;
and catch the potential errors in catch block. This will prevents you program from crashing.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--OaGnApU7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5a73nffo76fmmcedu5hp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OaGnApU7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5a73nffo76fmmcedu5hp.png" alt="Image description" width="268" height="126"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dcnN4lyW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/el375t7m1wl1vk5ikg97.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dcnN4lyW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/el375t7m1wl1vk5ikg97.png" alt="Image description" width="403" height="141"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Beside the generic catch block you can catch specific type of error and preform action according to it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--IZnkBpIm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/318oojsey1hqg1i2l0iu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--IZnkBpIm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/318oojsey1hqg1i2l0iu.png" alt="Image description" width="403" height="141"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There is one more thing the finally block.&lt;br&gt;
it’s useful as it gets exceuted regardless of weather an error occurs or not.&lt;br&gt;
It’s commonly use to perform cleanup operation.&lt;/p&gt;

&lt;p&gt;This Is TI, SAYONARA&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
