Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Ask HN: Javascript try/catch, where should I be using it? | Better HN
Ask HN: Javascript try/catch, where should I be using it?
4 points · by
devinrhode2
· 14y ago · 1 comment
What are some good examples of where to use try/catches in javascript?
Comments
[–]
jaseemabid
14y ago
1. Validate some JSON from a server. Throw "Bad network" or "bad json" 2. Validate user input and all things related..