---
title: "Comment by IraManage on \"Error Handling in JavaScript  (Golang Style)\" | Hashnode"
description: "I like this way to handle error in JS"
url: "https://hashnode.com/posts/error-handling-in-javascript-like-golang/60ccec45554b0d31c6053c47/comment/60d0b47ff668475d88febd05"
---

[Discussion](https://hashnode.com/posts/error-handling-in-javascript-like-golang/60ccec45554b0d31c6053c47)

Comment [Error Handling in JavaScript (Golang Style)](https://hashnode.com/posts/error-handling-in-javascript-like-golang/60ccec45554b0d31c6053c47)

[IraManage](https://hashnode.com/@Shubham17)

[Jun 21, 2021](https://hashnode.com/posts/error-handling-in-javascript-like-golang/60ccec45554b0d31c6053c47/comment/60d0b47ff668475d88febd05)

I like this way to handle error in JS

[Bibek Kakati](https://hashnode.com/@bibekkakati)

[Jun 21, 2021](https://hashnode.com/posts/error-handling-in-javascript-like-golang/60ccec45554b0d31c6053c47/comment/60d0b47ff668475d88febd05#reply-60d0b5f6f668475d88febd59)

I'm glad that you liked it.

Try to use this pattern in your project.

[IraManage](https://hashnode.com/@Shubham17)

[Jun 21, 2021](https://hashnode.com/posts/error-handling-in-javascript-like-golang/60ccec45554b0d31c6053c47/comment/60d0b47ff668475d88febd05#reply-60d0b7b2a6a3a25dadf61653)

Yes definitely I will try to use this pattern in my project. This will make my code readable too
