You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: js/red-javascript-style-guide/readme.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -489,7 +489,7 @@ Avoid relying on asi to be consistent and have less edge cases to remember.
489
489
490
490
### try catch over everything
491
491
492
-
Use `try catch` on individual statements that are expected to fail. Generally avoid `try catch` entirely if possible.
492
+
Use `try catch` on individual statements that are expected to fail for code clarity it makes it obvious which one is expected to fail. Generally avoid `try catch` entirely if possible. Validate input as early as possible to avoid potential error management in the middle of the function body.
0 commit comments