Checklist progress
0/168Learned
JavaScript Developer
Study Checklist
Checklist progress
0/168Learned
Given a scenario, handle errors properly.
0/7
try/catch/finally block structure: what executes in each block and when finally runs
Learn this conceptThe Error object properties: message, name, and stack
Learn this conceptThrowing custom errors: throw new Error('message') and throw new TypeError, RangeError, etc.
Learn this conceptCatching errors in async/await code using try/catch versus .catch() on a Promise chain
Learn this conceptRe-throwing errors in a catch block to propagate to a higher handler
Learn this conceptGiven code to be debugged, use the console and breakpoints.
0/4
Prepare for the Exam
Study Community
Ask questions and get the latest info from other JavaScript Developer studiers. 593 members and growing.
The finally block is guaranteed to execute after the try and catch blocks complete, making it ideal for cleanup code. However, it does not execute if an uncatchable exception occurs, such as a governor limit exception (System.LimitException), an assertion failure, or a license exception.