---
title: "Discussion on \"Difference between TypeError and ReferenceError\" | Hashnode"
description: "Discussion on \"Difference between TypeError and ReferenceError\". In Javascript, both TypeError and ReferenceError are types of errors that occur at runtime.\nTypeError:\nAs the name suggests TypeError occurs when a value is not of an expected TYPE. For example, if we try to call a non-function value as a function.\nc..."
url: "https://hashnode.com/posts/difference-between-typeerror-and-referenceerror/63ea534ef455ded45fa26108"
---

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

Discussion

# [Difference between TypeError and ReferenceError](https://nikhilchhabra.hashnode.dev/difference-between-typeerror-and-referenceerror?utm_source=hashnode&utm_medium=feed)

In Javascript, both TypeError and ReferenceError are types of errors that occur at runtime. TypeError: As the name suggests TypeError occurs when a value is not of an expected TYPE. For example, if we try to call a non-function value as a function. c...

Feb 13, 2023 · 2 min read · nikhilchhabra.hashnode.dev  
Read the article

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

## Written by

[Nikhil Chhabra](https://hashnode.com/@nikhilchhabra)

@nikhilchhabra · New Delhi, India

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

Me think, why waste time see lot tutorials when few blogs do trick

Aspiring web developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
