---
title: "Discussion on \"TypeError vs ReferenceError\" | Hashnode"
description: "Discussion on \"TypeError vs ReferenceError\". Errors occur when the JavaScript engine is parsing a script and encounters syntactically invalid code.\nJavaScript will throw an exception (throw an error). JavaScript will create an Error object with two properties: name and message.\nLet's look at tw..."
url: "https://hashnode.com/posts/typeerror-vs-referenceerror/63e89b2bf4635a0ec480a67b"
---

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

Discussion

# [TypeError vs ReferenceError](https://sudipta26.hashnode.dev/typeerror-vs-referenceerror?utm_source=hashnode&utm_medium=feed)

Errors occur when the JavaScript engine is parsing a script and encounters syntactically invalid code. JavaScript will throw an exception (throw an error). JavaScript will create an Error object with two properties: name and message. Let's look at tw...

Feb 12, 2023 · 3 min read · sudipta26.hashnode.dev  
Updated Feb 15, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#error](https://hashnode.com/tag/error)
-   [#learning](https://hashnode.com/tag/learning)

## Written by

[Sudipta Chakraborty](https://hashnode.com/@sudipta26)

@sudipta26 · India

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

Aspiring Web Developer | neog'23 | 💻📚🎵

I start learning web development and documenting my learnings

## Responses 1

Markdown supported · ⌘↵ to post

[Kirti Singh](https://hashnode.com/@kirtisingh14)

[Feb 12, 2023](https://hashnode.com/posts/typeerror-vs-referenceerror/63e89b2bf4635a0ec480a67b/comment/63e8a197861f30240f6df407)

useful
