---
title: "Discussion on \"Exception handling in JavaScript\" | Hashnode"
description: "Discussion on \"Exception handling in JavaScript\". There are two main types of errors in JavaScript:\n\nSyntax errors: occur when the code syntax is not proper and JavaScript interpreter can't understand it. This error can't be handled with exception handling.\n\nRuntime errors: occur while the code is e..."
url: "https://hashnode.com/posts/exception-handling-in-javascript/644615f8c214a0748edbd63c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Exception handling in JavaScript](https://singhanushka.hashnode.dev/exception-handling-in-javascript?utm_source=hashnode&utm_medium=feed)

There are two main types of errors in JavaScript: Syntax errors: occur when the code syntax is not proper and JavaScript interpreter can't understand it. This error can't be handled with exception handling. Runtime errors: occur while the code is e...

Apr 24, 2023 · 4 min read · singhanushka.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#exceptionhandling](https://hashnode.com/tag/exceptionhandling)
-   [#trycatch](https://hashnode.com/tag/trycatch)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#full-stack-web-development](https://hashnode.com/tag/full-stack-web-development)

## Written by

[Anushka Singh Bhardwaj](https://hashnode.com/@singh01)

@singh01 · India

  
[View profile](https://hashnode.com/@singh01)

Application Development Analyst

Frontend developer with expertise in HTML, CSS, JavaScript and experience in creating responsive, accessible and cross-browser compatible websites.

## Responses 1

Markdown supported · ⌘↵ to post

[Ayan Idris](https://hashnode.com/@Ayanidris5)

[Apr 24, 2023](https://hashnode.com/posts/exception-handling-in-javascript/644615f8c214a0748edbd63c/comment/6446598e28221b47cc48f0d2)

Appreciate the effort you put into this, thanks!💯
