TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Javascript try/catch, where should I be using it?

4 pointsby devinrhode2over 12 years ago
What are some good examples of where to use try/catches in javascript?

1 comment

jaseemabidover 12 years ago
1. Validate some JSON from a server. Throw "Bad network" or "bad json" 2. Validate user input and all things related..