Sujeet Jaiswalblog.sujeet.pro·Mar 11, 2023Better Error Handling in JavaScript / TypescriptThe Inspiration When I was exploring Go, I came across function calls that returned the error alongside the result. fd, err := os.Open("test.go") This motivates developers to account for errors at the beginning itself and not as an afterthought. Thi...1 like·46 readsJavaScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.