---
title: "Comment by Rajashree Parhi on \"The 3 Types of JavaScript Errors You Need to Know\" | Hashnode"
description: "The type error example isn&#39;t an error. You cold have used actual error example"
url: "https://hashnode.com/posts/the-3-types-of-javascript-errors-you-need-to-know/63eda35f6950705c18ba57d6/comment/63edd01e9612405e16d139e4"
---

[Discussion](https://hashnode.com/posts/the-3-types-of-javascript-errors-you-need-to-know/63eda35f6950705c18ba57d6)

Comment [The 3 Types of JavaScript Errors You Need to Know](https://hashnode.com/posts/the-3-types-of-javascript-errors-you-need-to-know/63eda35f6950705c18ba57d6)

[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-63eddf873c9c765be7a43d56)

Glad to know that you took time and actually read this article. Yes, you are correct that it's not throwing an error as such.

[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-63ede05746e2f1644c4f074d)

[Gautam Balamurali](https://hashnode.com/@ashcod) Yes otherwise rest is well written!

[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 🙂
