TE
TechEcho
Home
24h Top
Newest
Best
Ask
Show
Jobs
English
GitHub
Twitter
Home
Ask HN: Javascript try/catch, where should I be using it?
4 points
by
devinrhode2
over 12 years ago
What are some good examples of where to use try/catches in javascript?
1 comment
jaseemabid
over 12 years ago
1. Validate some JSON from a server. Throw "Bad network" or "bad json" 2. Validate user input and all things related..