---
title: "Discussion on \"The 3 Types of JavaScript Errors You Need to Know\" | Hashnode"
description: "Discussion on \"The 3 Types of JavaScript Errors You Need to Know\". JavaScript is one of the most widely used programming languages in the world, and it's a popular choice for building web applications. However, as with any programming language, JavaScript code can contain errors. These errors can cause your program ..."
url: "https://hashnode.com/posts/the-3-types-of-javascript-errors-you-need-to-know/63eda35f6950705c18ba57d6"
---

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

Discussion

# [The 3 Types of JavaScript Errors You Need to Know](https://gautam-balamurali.hashnode.dev/the-3-types-of-javascript-errors-you-need-to-know?utm_source=hashnode&utm_medium=feed)

JavaScript is one of the most widely used programming languages in the world, and it's a popular choice for building web applications. However, as with any programming language, JavaScript code can contain errors. These errors can cause your program ...

Feb 16, 2023 · 3 min read · gautam-balamurali.hashnode.dev  
Updated Mar 2, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#es6](https://hashnode.com/tag/es6)
-   [#neogcamp](https://hashnode.com/tag/neogcamp)

## Written by

[Gautam Balamurali](https://hashnode.com/@ashcod)

@ashcod · India

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

Trying to understand recursion to understand what is recursion.

A software engineer trying to document his journey of learning.

## Responses 1

Markdown supported · ⌘↵ to post

[Rajashree Parhi](https://hashnode.com/@rajashreeparhi)

[Feb 16, 2023](https://hashnode.com/posts/the-3-types-of-javascript-errors-you-need-to-know/63eda35f6950705c18ba57d6/comment/63edd01e9612405e16d139e4)

The type error example isn't an error. You cold have used actual error example

[Gautam Balamurali](https://hashnode.com/@ashcod)

[Feb 16, 2023](https://hashnode.com/posts/the-3-types-of-javascript-errors-you-need-to-know/63eda35f6950705c18ba57d6/comment/63edd01e9612405e16d139e4#reply-63ede0c146e2f1644c4f0756)

[Rajashree](https://hashnode.com/@rajashreeparhi) But if you go through the example once again you can see that below the code snippet I have explained that why it will not give us a desired output due to type error we can't perform mathematical operation when one of the variable is string in case of addition.

I should have followed up with one more example where JS console actually throws an error to make it understandable on layman terms.

[Rajashree Parhi](https://hashnode.com/@rajashreeparhi)

[Feb 16, 2023](https://hashnode.com/posts/the-3-types-of-javascript-errors-you-need-to-know/63eda35f6950705c18ba57d6/comment/63edd01e9612405e16d139e4#reply-63ee431f46e2f1644c4f1736)

[Gautam Balamurali](https://hashnode.com/@ashcod)

Yes yes, I got the explanation. However, as you pointed out error ones would have justified it more!

[Gautam Balamurali](https://hashnode.com/@ashcod)

[Feb 16, 2023](https://hashnode.com/posts/the-3-types-of-javascript-errors-you-need-to-know/63eda35f6950705c18ba57d6/comment/63edd01e9612405e16d139e4#reply-63ee6a1046e2f1644c4f1cf0)

[Rajashree Parhi](https://hashnode.com/@rajashreeparhi) Seconded 🙂
