---
title: "Discussion on \"Handling Errors in JavaScript: Try, Catch & Finally Made Simple\" | Hashnode"
description: "Discussion on \"Handling Errors in JavaScript: Try, Catch & Finally Made Simple\". “Why did my code suddenly break?”\nYou write some code…Run it…And boom — an error appears.\nconsole.log(user.name);\n\nIf user is undefined, your program crashes.\nThis is called a runtime error.\n\nWhat are"
url: "https://hashnode.com/posts/handling-errors-in-javascript-try-catch-finally-made-simple/69de6afb91716f3cfb5469da"
---

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

Discussion

# [Handling Errors in JavaScript: Try, Catch & Finally Made Simple](https://handlingerrorsinjavascripttrycatchfinallymadesimple.hashnode.dev/handling-errors-in-javascript-try-catch-finally-made-simple?utm_source=hashnode&utm_medium=feed)

“Why did my code suddenly break?” You write some code…Run it…And boom — an error appears. console.log(user.name); If user is undefined, your program crashes. This is called a runtime error. What are

Apr 14 · 4 min read · handlingerrorsinjavascripttrycatchfinallymadesimple.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascript-error-handling](https://hashnode.com/tag/javascript-error-handling)

## Written by

[Adarsh Pandey](https://hashnode.com/@Adarshbytes)

@Adarshbytes

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
